Display tracker when the scatter point is selected

Oct 1, 2013 at 3:52 PM
So, I've been using the new way to select a single scatter point of a series. (thanks for updating my simple example by the way, very useful!)

The only issue I have with it is that it removes the tracker functionality.

I think it could be quite nice to display the tracker when the point is selected. Is there a way to programatically display the tracker for a point yet?
Coordinator
Oct 1, 2013 at 8:04 PM
Edited Oct 1, 2013 at 8:05 PM
Alt. 1: Remove e.Handled=true - then the event will be passed to the tracker
Alt. 2: You have PlotModel.PlotControl.ShowTracker but you must build the tracker hit result yourself - it contains more information than the mouse hit result. Also remember to call HideTracker.
Oct 2, 2013 at 6:55 AM
Thanks objo, it wasn't working with the e.Handled=true removed because the PlotModel.MouseDown is called even if the Series.MouseDown has been called (which is totally normal but it hadn't triggered in my head), which meant that my points were getting unselected directly.

I fixed it by simply testing if e.HitTestResult == null, if it's null => I'm clearing the selection, otherwise I don't do anything.

Works like a charm.
Coordinator
Oct 3, 2013 at 5:26 PM
Good idea, I changed the example!