Chartjs-Need some Help Regarding Chart.js

1👍

Set the stepsize parameter in the tick configuration object.

Example:

let options = {
    scales: {
        yAxes: [{
            ticks: {
                max: 5,
                min: 0,
                stepSize: 1
            }
        }]
    }
};

Should yield [0, 1, 2, 3, 4, 5].

Leave a comment