Draw Zoom rectangle

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
frank
Posts: 51
Joined: Tue Mar 25, 2014 9:04 am

Draw Zoom rectangle

Post by frank » Tue May 27, 2014 2:23 pm

Hi,

I have a WPF-Application with multiple charts in it. They are all synchronised when panning and zooming. Is it possible to programmatically overlay/draw the zoom rectangle on the other charts, when the user zooms by mouse in one chart?

Best regards,
Frank
Attachments
ZoomRect.png
ZoomRect.png (22.13 KiB) Viewed 7482 times

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

Re: Draw Zoom rectangle

Post by ArctionPasi » Tue May 27, 2014 2:36 pm

Hi Frank,

By using chart's MouseDown/Move/Up event handlers, yes. For other charts, use an Annotation or PolygonSeries(4 corners) to render a box. In MouseDown, create the box. In MouseMove, resize the box. In MouseUp, get rid of the box, and use xAxis.SetRange for them to apply new zoomed scale.
LightningChart Support Team, PT

Post Reply