Chartjs-Chart JS axes extension

0👍

You need to define yAxes.ticks.max, the user defined maximum value for the scale, which overrides the maximum value from data.

For further information, please consult Tick Configuration from Chart.js documentation.

For your first chart, this would look as follows:

options: { 
  scales: {
    yAxes: [{
      ticks: {
        max: 60
      }
    }]
  }
}

Leave a comment