CanvasJS HTML5 JavaScript Charts
CanvasJS helps you create chart in the most simple and efficient way possible
HTML
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
<div id="chartContainer" style="height: 370px; width: 100%;"></div>
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
JavaScript
window.onload = function () {
var chart = new CanvasJS.Chart("chartContainer", {
animationEnabled: true,
theme: "light2",
title:{
text: "Simple Line Chart"
},
axisY:{
includeZero: false
},
data: [{
type: "line",
dataPoints: [
{x : -5.68434189e-14, y: 1},
{x: -4.26325641e-14, y: 2},
{x: -2.84217094e-14, y:1},
{x: -1.42108547e-14, y:2},
// {x: 0, y: 2}
]
}]
});
chart.render();
}