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
Best way to select a region of ViewXY
Moderator: Queue Moderators
Re: Best way to select a region of ViewXY
After doing some more reading I have stumbled across a Band Series which seems to be perfect for what I am attempting to do.
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Best way to select a region of ViewXY
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.
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