Extend the axis 'max' property to act like css min-height rather than a hard ceiling
This would allow the (y) axis to be set to, say, 1-100 but if a value > 100 came along it would resize the max property to fit rather than simply truncating the points.
This is not the same as leaving max unset because that will show a value of 2 at the top of the axis if that's the largest data point. I don't want the axis to scale below max, just above it.
This is implemented now and will be released with version 5.0.1. The new options are called softMin and softMax.
-
There is a conflict with the default softThreshold in this case. It is possibly a bug. If you set softThreshold to null it gives the desired result: http://jsfiddle.net/highcharts/q9f6bjfk/13/
-
Anonymous commented
Is the softMin property working? If I add softMin: -100 to yAxis configuration on the jsfiddle, the chart still starts from 0.
-
Jamie commented
@torstein - any more thoughts on this? It seems like it could fairly easily roll into the work being done on the FLOOR and CEILING properties.
-
Anonymous commented
Having minimum max and maximum min would be great. These are especially useful on the Y axis.
Example, you have a percentage scale, with a few values that can be negative too, so you want 0-100 min-max in most cases, but the ability to scale to the negative if that's the case. Also, there might be some "errors" in your data, and get > 100% - you want to see them there too, w/o having to pre-process the data. -
poomz commented
I want to set Extream of multi Axes . But when I do this chart load twice for change in both . Is there any way I put extream before chart load
-
Malte Hansen commented
I can't belive this is not possible?
-
Jamie commented
Related feature request: http://highcharts.uservoice.com/forums/55896-general/suggestions/2039469-extreme-min-max-setting
-
Kyle Hailey commented
Last comment seems to have been lost.
Looks like I can get much of what I want with chartrMB.yAxis[0].setExtremes -
Kyle Hailey commented
I support this as well. It would be great to have a "minimum max", ie the graph can resize up and down but when resizing down not to go below the "minimum max"
Kyle Hailey
http://dboptimizer.com -
If you want the chart not to scale below for example one week, you can set the maxZoom option to one week. It doesn't behave exactly like your suggestion, but it is related.
-
jrichemont commented
I have at least one other supporter for this in the forum.