How can I get the max value of a y axis at highcharts?
i.e. http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts
This information is directly accessible from a Axis object. For example:
var chart = $('#container').highcharts();
var axisMax = chart.yAxis[0].max; // Max of the axis
var dataMax = chart.yAxis[0].dataMax; // Max of the data
As mentioned you can use Axis.getExtremes (API) , but the same data is also available as:
Axis.min: Min of the axisAxis.max: Max of the axisAxis.dataMin: Min of the dataAxis.dataMax: Max of the dataAnd even some historic data if the extremes of the axis has changed:
Axis.oldMin: The previous min of the axisAxis.oldMax: The previous max of the axis