0👍
I figured it out by replacing “max” by “suggestedMax”. ChartJS understands it’s just a suggestion and deal with my problem.
yAxes: [{
gridLines: {
display: true
},
ticks: {
beginAtZero: true,
suggestedMax: dataExcp[4] * 1.1,
callback: function (value) {
return value.toLocaleString() + " €";
},
fontStyle: 'bold'
}
}
]
Source:stackexchange.com