Best way to select a region of ViewXY

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Arction_LasseP

symbolick
Posts: 49
Joined: Thu May 16, 2013 8:24 pm

Best way to select a region of ViewXY

Post by symbolick » Fri May 17, 2013 7:56 pm

I am attempting to select a region of a ViewXY chart. In the previously used charting technology I did this by laying a canvas over the control and drawing a rectangle(w/ half opacity) over the selected region. Then I would translate the area of the rectangle into my selected data using various screen to point functions.

Do you have any suggestions on how to go about this in LightningChart?

Regards,
Aaron

symbolick
Posts: 49
Joined: Thu May 16, 2013 8:24 pm

Re: Best way to select a region of ViewXY

Post by symbolick » Fri May 17, 2013 8:38 pm

After doing some more reading I have stumbled across a Band Series which seems to be perfect for what I am attempting to do.

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

Re: Best way to select a region of ViewXY

Post by ArctionPasi » Sun May 19, 2013 7:59 pm

Bands a great when selecting range in X or Y, both not both. Band always stretches to width or height of the graph.

If you need to select X and Y ranges, you could use Annotation. Their size can be bound in to axis values or screen coordinates. You may want to override MouseDown/Move/Up event handlers to bring the annotation visible, resize it while mouse button is down, and finally hide it and make operation with the selected region.
LightningChart Support Team, PT