score:1

Accepted answer

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)


Related Query

More Query from same tag