X Axis zoom limits: is there a way to set them?

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

X Axis zoom limits: is there a way to set them?

Post by greggorob64 » Thu Apr 03, 2014 1:44 pm

I'm creating my stacked sonagram project, and have a question about mouse-wheel zooming. Is there a way to set limits for the maximum you can zoom in and out when using the moue-wheel?

For instance, in the screenshot below, I do not need to zoom out beyond showing all the data, ever. I've tried setting the axis minimum, but that's not helping. A possible solution i think is: after a zoom (if there's an event somewhere), rescale to max value every time.

Is there a 'correct' way?

Thanks!

Image

User avatar
ArctionPasi
Posts: 1366
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland

Re: X Axis zoom limits: is there a way to set them?

Post by ArctionPasi » Thu Apr 03, 2014 5:45 pm

Hello.

The axis ranges can be checked and limited in axis.RangeChanged event handlers, see this post:
http://forum.arction.com/viewtopic.php? ... limit#p116

Does it work for you?
LightningChart Support Team, PT

greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

Re: X Axis zoom limits: is there a way to set them?

Post by greggorob64 » Thu Apr 03, 2014 8:45 pm

Worked great, thanks!