Tracker vs. Annotation

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

TrickyT wrote at 2014-04-02 11:15:

I just tried out OxyPlot yesterday so I don't have that much experience yet.

In the "Getting Started"-example (http://www.oxyplot.org/doc/HelloWpf.html) a Function Series is introduced, and a Tracker is shown in the resulting plot when pressing the left mouse button.
Instead of a Function Series, I would like to draw some polygons with a Tracker attached. I tried to add a Polygon Annotation showing nice polygons in the plot, but no Tracker is shown when pressing the left mouse button. Do I have to implement the polygons using Series or is there another way of getting the Tracker together with annotations? Do I miss something?

objo wrote at 2014-04-02 12:14:

Annotations are (currently) not target for the tracker. The tracker only does hit testing on the series. I would suggest to create a custom PolygonSeries that implements the hit test method. The AreaSeries is another alternative, but not as clean.