Maximum zoom-in limit

Jul 10, 2014 at 12:21 PM
I am using dynamic zooming in my plot, but I want to make it more user-friendly.
I wanted to implement limits, so user cannot zoom-out too far and zoom-in too close.
Limiting zoom-out is quite simple - i just set absolutemin/absolutemax values, and it works.
As far as i know, there is no out-of-the-box feature that would work similarly but for zoom-in.
Actually, I am out of ideas - i tried disabling zooming after the length of axis was too short, but after this I am not able to zoom-out again (AxisChanged event is not called anymore).

Do You guys have any ideas how I can limit zooming-in?
Coordinator
Jul 10, 2014 at 1:07 PM
Should we add a "MinimumRange" property to the axes? With default value double.MinValue..
Marked as answer by wbidus on 7/10/2014 at 7:05 AM
Jul 10, 2014 at 1:51 PM
Sounds promising!

Thank You, how could I miss it? It works exactly as it should :)
Jul 10, 2014 at 2:00 PM
Edited Jul 10, 2014 at 2:02 PM
Maximum range meaning between the visible min and max points? 'cause that sounds like a pretty decent way of limiting it (also as wbidus mentioned MinimumRange already exists =P). I've said this a few times already but it'd also be nice if the AxisChanged event had more information in it's event args (like factor or new screen points).
Coordinator
Jul 11, 2014 at 8:04 PM
Yes, it should be the minimum between minimum and maximum. Sorry, I forgot that it was already implemented. And default value should of course be 0...
@Slxe: I think we can start a new discussion/issue on changing the AxisChanged event data. I am a bit hesitant to exposing more data than what is absolutely needed :-)