With Chart.js, is there a way of setting a dynamic maximum y-axis value?
I have a chart for which the absolute maximum for a value is always 999. If the values are low (50, 100 or 200 for instance), the y-axis auto-scales (the maximum tick would be respectively 60, 110 or 210 for instance) as expected.
However, if one of the data points is 999, the y axis maximum becomes 1000. Is there any way to set 999 as the y-axis maximum without forcing this maximum to be 999 if I only have low values in my chart? I have tried using max
of suggestedMax
in the options unsuccessfully.