Pie chart click event
This discussion was imported from CodePlex
tbnguyen1407 wrote at 2013-05-02 10:30:
Hi,
Does the pie series fire MouseUp/MouseDown event? Those events do not seem to trigger when I click on the slices.
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
}
Thanks.objo wrote at 2013-05-06 10:39:
Sorry, the mouse events are not yet supported by the
But it should be quite easy to implement:
PieSeries
.
But it should be quite easy to implement:
- store the polygons in the
PieSeries.Render
method in a private field - in the
PieSeries.GetNearestPoint
method, check if the point is inside any of these polygons (useScreenPointHelper.IsPointInPolygon
)
see a similar implementation in theBarSeriesBase
and return a TrackerHitResult
Customer support service by UserEcho