Chartjs-How can I get suggestedMax number for yAxes?

0👍

You can use following code to get the max:

// Find the scale in the chart instance
var axis = chartInstance.scales.<scale id>;
var max = axis.max;
var min = axis.min;

More info can be found here.

Here is the fiddle for more details.

Leave a comment