Home forums Using CanvasJS Set ID of the generated CANVAS object Reply To: Set ID of the generated CANVAS object

#19955

Indranil Deo
Member

@michael,

Yes, you can set ID for individual chart-canvas using chart.canvas.setAttribute("id", "chartCanvas"). Please take a look at this jsfiddle.

___________
Indranil Deo,
Team CanvasJS