ChartJS - Line Chart - Y axis scale problem ?
Line Chart - Y axis scale problem ?
by Sami Mahmal
HTML
<script src="http://www.chartjs.org/assets/Chart.js"></script>
<body>
<h3>Working Chart</h3>
<canvas id="rice" width="600" height="400"></canvas>
</body>
CSS
canvas { background-color : #eee;
}
JavaScript
var riceData = {
labels : ["January","February","March","April","May","June"],
datasets :
[
{
fillColor : "rgba(172,194,132,0.4)",
strokeColor : "#ACC26D",
pointColor : "#fff",
pointStrokeColor : "#9DB86D",
data : [203000,15600,99000,25100,30500,24700]
}
]
}
var rice = document.getElementById('rice').getContext('2d');
new Chart(rice).Line(riceData);