Page 1 of 1

Anyone know how to set Drag Area while Zooming?

Posted: Mon Jul 02, 2018 9:37 am
by kbj0109
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.

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

Posted: Thu Jul 05, 2018 5:42 am
by kbj0109
The answer was
chart.ViewXY.ZoomPanOptions.RectangleZoomDirection = RectangleZoomDirection.Vertical;

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

Posted: Mon Jul 09, 2018 12:16 pm
by ArctionKestutis
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.