Highcharts: Set y Axis Max and Min dynamically, and not at creation

I guess setExtremes is the best way to go about it. Syntax should be: chart.yAxis[0].setExtremes(100,300);

If one wants to just set minimum then chart.yAxis[0].setExtremes(100,null); worked for me.


we can also use update method

chart.yAxis[0].update({
    max: 100
}); 

chart.xAxis[0].update({
    max: 150
}); 

Also you can use tickPositioner http://api.highcharts.com/highcharts#yAxis.tickPositioner to define min/max values and ticks between these values.