-
Notifications
You must be signed in to change notification settings - Fork 11
Canvas
Yeray edited this page Mar 22, 2018
·
1 revision
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();
Elements
Chart formatting
Series
Other parts of the Chart
Chart behaviour