[Chartjs]-How to show scale labels and set min/max for yAxes?

2👍

A bit late answer but Chart.js v2.0beta doesn’t seem to support those tick options well.

I updated your fiddle. I updated Chart.js v2.0beta to Chart.js v2.5, which is the latest Chart.js for now.

Your tick options should look like

ticks: {
  min: -10,
  max: 110,
  stepSize: 10,
  reverse: true,
},

0👍

I know you were asking for set boundaries, but with my chart I do not know what the scale is so I look at the data and get the Hi/Low and adjust the chart to match the data.

    var hi = data.datasets[3].data[0];
    var lo = data.datasets[1].data[data.datasets[1].data.length - 1];


     ticks: {
        max: hi,
        min: lo,
        stepSize: 10
        }
    }

Hope this helps someone.

Leave a comment