Pie chart click event

May 2, 2013 at 9:30 AM

Does the pie series fire MouseUp/MouseDown event? Those events do not seem to trigger when I click on the slices.
PieSeries pieSeries = new PieSeries();
pieSeries.Slices = listOfPieSlices; // populate

pieSeries.MouseDown += (o, args) =>
    // handle mousedown event - never trigger here
May 6, 2013 at 9:39 AM
Sorry, the mouse events are not yet supported by the PieSeries.

But it should be quite easy to implement:
  1. store the polygons in the PieSeries.Render method in a private field
  2. in the PieSeries.GetNearestPoint method, check if the point is inside any of these polygons (use ScreenPointHelper.IsPointInPolygon)
    see a similar implementation in the BarSeriesBase and return a TrackerHitResult
If you or someone else want to make a pull request for this issue, remember to include an example!