Home forums Using CanvasJS How can i get access to a canvasJS chart through a DOM-Container Reply To: How can i get access to a canvasJS chart through a DOM-Container

#19812

Indranil Deo
Member

@merajahmed,

Please use var c = $("#chartContainer").CanvasJSChart();. Also take a look at this updated jsfiddle.

And please use the jQuery plugin (https://canvasjs.com/assets/script/jquery.canvasjs.min.js) instead of Javascript.

___________
Indranil Deo,
Team CanvasJS