[Chartjs]-Chartjs xaxis ticks with round values from shifted input data

2👍

If you wanna modify ticks on x-axis, you can do it by using afterBuildTicks.

xAxes: [{    
    afterBuildTicks: function(mychart) {
        mychart.ticks = [];
        mychart.ticks.push(0);
        mychart.ticks.push(2000);
        mychart.ticks.push(4000);
        mychart.ticks.push(5000);
    }
}],

Leave a comment