Page 1 of 1

add SeriesEventMarker on point click

Posted: Mon Jan 14, 2019 10:48 am
by abol810
How can i achieve this?
How do i get the clicked point x value?(PointLineSeries);
How do I even add a click event for points(or a series to get the clicked point on that series)?

Re: add SeriesEventMarker on point click

Posted: Tue Jan 15, 2019 2:31 pm
by ArctionKestutis
Please check our Demo App's groups of XY examples "Cursor tracking". Those will provide with ideas how it could be engineered.
In general, you can use methods to convert screen coordinates to Axis' values

Code: Select all

axis.CoordToValue()
and some of LineSeries solving method, e.g.

Code: Select all

series.SolveYValueAtXValue(x)
All the best.