Just a simple example of a Bar series using TeeChart HTML5.
See in action at bl.ocks.org
Last active
March 16, 2017 09:39
-
-
Save YerayAlonso/122e8b6d7c13ae570fc70e7eecf858fb to your computer and use it in GitHub Desktop.
Simple Bar series using TeeChart HTML5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple Bar Chart</title> | |
<!--[if lt IE 9]> | |
<script src="http://www.steema.com/files/public/teechart/html5/latest/src/excanvas/excanvas_text.js"></script> | |
<script src="http://www.steema.com/files/public/teechart/html5/latest/src/excanvas/canvas.text.js"></script> | |
<![endif]--> | |
<script src="http://www.steema.com/files/public/teechart/html5/latest/src/teechart.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
var Chart1; | |
function draw() { | |
Chart1=new Tee.Chart("canvas1"); | |
Chart1.addSeries(new Tee.Bar([5,3,2,7,1]) ); | |
Chart1.addSeries(new Tee.Bar([4,4,8,2,9]) ); | |
Chart1.draw(); | |
} | |
</script> | |
</head> | |
<body onload="draw()"> | |
<br><canvas id="canvas1" width="600" height="400"> | |
This browser does not seem to support HTML5 Canvas. | |
</canvas> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment