Home Forums Chart Support Get chart instance from DOM element Reply To: Get chart instance from DOM element

#35916

@rr93,

Based on the code sample shared by you, it seems like you are trying to create the chart in JavaScript way and using the jQuery plugin to get a reference to the chart object. Instead, you can create the chart in jQuery way using $("#chartContainer").CanvasJSChart(options); then get a reference to the chart object using $("#chartContainer").CanvasJSChart();. Please take a look at this documentation page for more information on creating chart using the jQuery plugin.

Chart using jQuery Plugin

___________
Indranil Deo
Team CanvasJS