Home Forums Chart Support Render graph in HTML Canvas Reply To: Render graph in HTML Canvas



The chart container has to be a div, not a canvas, as shown in the code snippet below:

<div id="myChart" style="border:1px solid #000000; margin-right: auto; margin-left: auto; display: block;"></div>

Please take a look at this docs page for a step-by-step tutorial on creating a chart.

Thangaraj Raman
Team CanvasJS