Anyone know how to set Drag Area while Zooming?

Need help in implementing some specific function to your LightningChart Ultimate powered application? Post a question and get code snippets from other LightningChart Ultimate community members.

Moderator: Queue Moderators

Post Reply
kbj0109
Posts: 2
Joined: Mon Jul 02, 2018 9:23 am

Anyone know how to set Drag Area while Zooming?

Post by kbj0109 » Mon Jul 02, 2018 9:37 am

Dear Genius.

I want to control the area to be Zoomed,
so force to drag either entire area of Axis while user drag on the other Axis.

Can you see the picture I post? These pictures are captured from other chart that has a function I want.

Dragged area of X_Axis only matters, and Y_Axis always gets fully dragged.
Image

Dragged area of Y_Axis only matters, and X_Axis always gets fully dragged.
Image

Can I control the dragged area to be Zoomed?
I believe it's possible, but cannot find how.

Does anyone have example code that I can follow?
ZoomPanOptions or ZoomByFactor seem to have what I want.. but don't know how....

Hope I get help here.

kbj0109
Posts: 2
Joined: Mon Jul 02, 2018 9:23 am

Re: Anyone know how to set Drag Area while Zooming?

Post by kbj0109 » Thu Jul 05, 2018 5:42 am

The answer was
chart.ViewXY.ZoomPanOptions.RectangleZoomDirection = RectangleZoomDirection.Vertical;

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

Re: Anyone know how to set Drag Area while Zooming?

Post by ArctionKestutis » Mon Jul 09, 2018 12:16 pm

Sorry for the late reply. It was busy week so forum was neglected.

LightningChart has extensive list of properties, which modifies zooming & panning behavior. This and many more setting could be found in User's Manual chapter 'Zooming and panning'

All the best.

Post Reply