Accepted answer

in the ticks object you can also supply min, max and stepsize to override the default auto adjust behaviour

(more information can ben seen in the docs on all available properties)

ticks: {
    min: 0,
    max: 13,
    stepsize: 1, of the object.....



if anyone will have similiar problem, but with steps that are not bigger by 1 from each other (or other numbers which have common divisor) what means that solution above would not work - here's my solution. just return all ticks in "afterbuildticks" callback in chart.option.scales.yaxes

  chart.options.scales = {
  yaxes: [{
    afterbuildticks: (scale, yticks) => yourticks


for anyone else looking for a solution, the autoskip option should be set to false, and the graph won't make any adjustments if the ticks don't fit.


Related Query

More Query from same tag