Chartjs-How to expand the "Y" scale of the data in chart.js?

1👍

Override the scale:

Try something like this:

window.onload = function(){
    var ctx = document.getElementById("canvas").getContext("2d");
    window.myLine = new Chart(ctx).Line(lineChartData, {
        scaleOverride : true,
        scaleSteps : 10,
        scaleStepWidth : 50,
        scaleStartValue : 0 
    });
}

A max option is also viable, as it helped the author of the question.

Leave a comment