Dear SciChart Team:
I want to have two vertical lines on the graph and get the spacing of the two lines as the mouse moves,
as shown in the attached picture.
Can you provide a simple example showing the architecture of this feature?
- Johnny Yeh asked 5 years ago
-
Undo/Redo behavior is abnormal
- You must login to post comments
Hi Johnny,
We have a feature like this built into SciChart, called the VerticalSliceModifier
Examples here: https://www.scichart.com/example/wpf-chart-example-using-vertical-slice-tooltips/
Documentation here: https://www.scichart.com/documentation/v5.x/VerticalSliceModifier.html
Hope this helps!
Best regards
Andrew
- Andrew Burnett-Thompson answered 5 years ago
-
Hi Andrew: How do I get the dragged event on the VerticalSliceModifier when I am dragging the Vertical Slice? Can you provide a simple example showing the architecture of this feature?
-
Hi Johnny, you can either subscribe to the Annotation.Delta event, or if using MVVM, you can bind to VerticalLineAnnotation.X1 property. Similar questions here: https://www.scichart.com/questions/question/add-vertical-line-annotation-programmatically https://www.scichart.com/documentation/v5.x/SciChart.Charting~SciChart.Charting.Visuals.Annotations.AnnotationBase~DragDelta_EV.html
- You must login to post comments
Please login first to submit.