Hit testing to determine shape and source data

Sep 27, 2010 at 4:50 AM

I haven't found much about hit testing. I am greating a scatter plot:

            eventsGraph = plotter.AddLineGraph(ds,
                                 new Pen(Brushes.Transparent, 0),
                                 new CirclePointMarker { Size = 15.0, Fill = Brushes.Green },
                                 new PenDescription("Events"));

When I hit test, I can get the graph itself, but I need to get the exact visual that was clicked on, AND from there back to the original item in the data source. Using another charting package, I was able to do this, but I had to derive my own class from Visual and then make the chart use that.

Any suggestions? This is for a critical requirement. I am evaluating the package. So far, I am pretty impressed!

Jim