I would like to select points in a Polar chart in MSChart.
I have the ChartAreas.CursorX(and Y).IsUserSelection = true. But when I try to select a zone, the SelectionChanged event does not activate, nor do I see a selection in the chart.
I would like to select points in a Polar chart in MSChart. I have
Share
No, looking at the inner code of mschart, the cursors user selection is inhibited when the chart area is circular (as in the polar chart).
In fact the decompiled code of
chart.MouseDownis something like this:So, the only way is to handle the
MouseClick/MouseMoveevents, get the points values usingHitTestmethod and do whatever you need manually.For example, this answer explains how to show a tooltip on
MouseClick/MouseMoveevent.EDIT :
Here’s a full working code piece showing how to implement the selection in a polar chart.
Screen-shot: