// Use the teechart.js script:
<script src="../../src/teechart.js" type="text/javascript"></script>
// Script to create and draw the chart:
<script type="text/javascript">
function draw() {
// Create a chart with the specified canvas:
var Chart1=new Tee.Chart("canvas");
Chart1.addSeries(new Tee.Line([5,3,2,7,1]) );
Chart1.addSeries(new Tee.Line([4,4,8,2,9]) ).visible=true;
Chart1.series.items[0].format.stroke.size=3;
Chart1.axes.left.format.stroke.fill="red";
Chart1.title.text="TeeChart for JavaScript";
Chart1.title.format.font.style="18px Verdana";
Chart1.draw();
}
</script>
// Call the draw() function, for example at body onload event: