How can I get the max value of a y axis at highcharts?

前端 未结 2 1777
暖寄归人
暖寄归人 2020-12-31 08:48

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

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-31 09:26

    Assuming that chart is your chart var.
    chart.yAxis[0].max;

    demo

    Update

    @Anagio told that it's possible to get it the following way.
    chart.yAxis[0].getExtremes

    This way you can get the data values and the tick values.
    The data values are the values from your series, while the tick values are the values from chart lines.

    Reference

提交回复
热议问题