Home Forums Chart Support Integrate performance chart with React Reply To: Integrate performance chart with React

#34840

@jeremy,

You can get the reference to the chart instance using onRef. This allows you to access all chart properties and methods. Kindly take a look at the code snippet below for an example on exporting chart with a button click,

handleClick() {
   this.chart.exportChart({format:"png"});
}

Please find a working sample project here.


Adithya Menon
Team CanvasJS