I want add some line series my with mouse. Left click down for start, move mouse to draw line and mouse up to finish. The problem, that SciChartSurface do not raise MouseDown event ever. And another issue get mouse position according axis values.
What the best way draw line series with mouse?
- Sergey Burukin asked 4 years ago
- You must login to post comments
Thank you for quick answer. SimpleFreeDrawModifier works fine except XAxis.GetDataValue(e.MousePoint.X) function, it returns incorrect value. I have find, that XAxis.GetDataValue(e.MousePoint.X- 50) returns closer to correct value, but not for any zoom. How to fix this bug?
- Sergey Burukin answered 4 years ago
-
Hi Sergey, this is because the axis is on the left. It’s related to this issue. https://www.scichart.com/questions/wpf/modifiermouseargs-bug-report. Should be easily fixable!
-
It works for me. Thank you!
- You must login to post comments
We have a sample which does just this in our Customer Examples Github page:
Custom Modifiers Sandbox contains a SimpleFreeDrawModifier, which shows how to use the Chart Modifier API to free-draw on a chart by mouse click.
There is an accompanying set of articles here: https://support.scichart.com/index.php?/Knowledgebase/Article/View/17234/32/
Best regards,
Andrew
- Andrew Burnett-Thompson answered 4 years ago
-
Andrew, could you take a look my message below?
-
Yep done and answered! Did it work?
- You must login to post comments
Please login first to submit.