Chartjs-Automatic Y-axis scale: max is always as 120% of highest value in ChartJS

0👍

If you’re using a backend language to parse the data prior to displaying it, I’d be doing a calculation there to work out what the “max” figure should be, then insert that into the yTicks are as “max: ” (as a PHP example), otherwise, use javascript .forEach to cycle through your data array and determine the highest number, then put that in the max field.

Leave a comment