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",
        dataPoints: [
        { x: new Date('2015-01-01'), y: 71 },
        { x: new Date('2015-01-02'), y: 55},
        { x: new Date('2015-01-03'), y: 50 },
        { x: new Date('2015-01-04'), y: 65 },
        { x: new Date('2015-01-05'), y: 95 },
        { x: new Date('2015-01-06'), y: 68 },
        { x: new Date('2015-01-07'), y: 28 },
        { x: new Date('2015-01-08'), y: 34 },
        { x: new Date('2015-01-09'), y: 14}
        ]
      }
      ]
    });

 chart.render();