Canvas - Steema/TeeChartJS GitHub Wiki
Charts are displayed by default using HTML5 Canvas elements.
<canvas id="canvas1" width="300" height="200"></canvas>
The main class Tee.Chart
should be initialized passing the <canvas>
element or its id as string:
- Using the canvas id:
var Chart1=new Tee.Chart("canvas1");
- Using the element:
var Chart1=new Tee.Chart(document.getElementById("canvas1"));
Hidden charts can be created without passing any canvas parameter:
var Chart1=new Tee.Chart();
Charts are rendered to canvas when calling the draw method:
Chart1.draw();