Home › Forums › Chart Support › Get chart instance from DOM element › Reply To: Get chart instance from DOM element
@rr93,
CanvasJS jQuery plugin is just a wrapper for CanvasJS JavaScript chart, which allow you to integrate CanvasJS Charts the jQuery way i.e. $("selector").someAction().
$("selector").someAction()
There are no side-effects or any difference between them apart from the way it’s been used. With jQuery plugin you can get a reference to the chart object through the DOM element using $("#myChartContainer").CanvasJSChart(); if it’s created using jQuery plugin ( $("#myChartContainer").CanvasJSChart(chartOptions); ).
$("#myChartContainer").CanvasJSChart();
$("#myChartContainer").CanvasJSChart(chartOptions);
___________ Indranil Deo Team CanvasJS