How to make Axix range to fix?

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
daihyuni
Posts: 2
Joined: Wed Mar 11, 2020 10:31 am

How to make Axix range to fix?

Post by daihyuni » Fri Mar 13, 2020 1:52 am

If the ragne of x-axis is specified, even if zoom in/out is performed, the specified x-axis range does not chage.

For example)
the x-axis range is (0 ~ 100)
When I try to zoon in/out, x-axis is only (0 ~ 100). it is fixed.
Just only change internal chart item.

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

Re: How to make Axix range to fix?

Post by ArctionKestutis » Fri Mar 13, 2020 1:54 pm

Hi,

If you don't want XAxis to change you can:
1. Set ViewXY.ZoomPanOptions.MouseWheelZooming = Vertical
2. Set ViewXY.ZoomPanOptions.AxisMouseWhellAction = None
3. Set ViewXY.ZoomPanOptions.PanDirection = Vertical
4. Set ViewXY.XAxis.MouseScrolling = False

Is this what you need?

All the best.

Post Reply