Basic HTML5 Chart Example - CanvasJS

Basic HTML5 Chart Example

HTML

<script src="http://canvasjs.com/assets/script/canvasjs.min.js"></script>
<div id="chartContainer" style="height: 360px; width: 100%;"></div>

JavaScript

var chart = new CanvasJS.Chart("chartContainer",
	{
      data: [
      {
        type: "column",
        toolTipContent: "{under_score}: {underscore}",
        dataPoints: [
        { x: 10, y: 71, under_score: "foo1", underscore: "bar1" },
        { x: 20, y: 55, under_score: "foo2", underscore: "bar2" },
        { x: 30, y: 50, under_score: "foo3", underscore: "bar3" },
        { x: 40, y: 65, under_score: "foo4", underscore: "bar4" },
        { x: 50, y: 95, under_score: "foo5", underscore: "bar5" },
        { x: 60, y: 68, under_score: "foo6", underscore: "bar6" },
        { x: 70, y: 28, under_score: "foo7", underscore: "bar7" },
        { x: 80, y: 34, under_score: "foo8", underscore: "bar8" },
        { x: 90, y: 14, under_score: "foo9", underscore: "bar9"}
        ]
      }
      ]
    });

 chart.render();