SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components


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?

  • You must 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?

  • You must 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:

Best regards,

  • Sergey Burukin
    Andrew, could you take a look my message below?
  • Andrew
    Yep done and answered! Did it work?
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.