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
}
}]
}
}
- Chartjs-How can I change the legend label without affecting my tooltip label?
- Chartjs-Multiples values in yAxes with same xAxes
Source:stackexchange.com