Chartjs-Chartjs : Y axis starting with highest datapoint

1👍

You can use scale overwriting:

    new Chart(cnv.getContext("2d")).Line(data, {
        scaleOverride: true,
        scaleStartValue: 4,
        scaleStepWidth: 1,
        scaleSteps: 4,
    });

This will produce 4,5,6,7,8 Y axis (Please note, you have to implement start point and steps number/width calculation)

Leave a comment