0

How to get click position in plot?

A.W. 3 years ago • updated by Mark Bean 2 years ago 1

I'm trying to get the click-position in my plot. but x and y are not caught in the plot.


private void Plot_MouseDown (object sender, OxyPlot.OxyMouseDownEventArgs me) { ...... me.Position.X, me.Position.Y
...........


ex: my plot axis are max 10, and i get x= 249 and y = 123.

I'm new to OxyPlot, but can't we use the approach shown in the MouseEvents examples, i.e.

model.MouseDown += (s, e) => ..... where e offers properties like e.Position.X, etc.