First of all, apologies for the post title, but I failed to come up with a better one to describe my problem.
Is there a way in highcharts to set the maximum value for the yAxis to, say, 1000 (i.e. via max: 1000
) but keep it dynamic if the maximum values are lower than the set maximum? As an example, let's say we have two datasets.
The first one ranges between 0 and 1500. Here any data >1000 should not be displayed. Setting yAxis: { max: 1000 }
does the trick.
Now we update the data series with the second data set which ranges between 0 and 48. Now max: 1000
causes the line to virtually hug the x-axis. So here it would be best if Highcharts dynamically adjusts the yAxis to range from 0-50.
Here's a fiddle to illustrate the problem: http://jsfiddle.net/PanicJ/s7fZu/1/
P.S.
Just noticed the minRange
setting in Highcharts. Now, why isn't there a maxRange
equivalent? Or is there?