score:21

Accepted answer

the linked question is for chart.js version 1.x. for the new version you need to use the ticks option. see http://www.chartjs.org/docs/#scales

   ...
   xaxes: [{
      ticks: {
        min: 0,
        stepsize: 1,
        max: 4
      },
      ...

fiddle - https://jsfiddle.net/jkufz1b9/


Related Query

More Query from same tag