oxyplot
oxyplot copied to clipboard
Events (mouse click, touch) on legends in legend box
When the user clicks or touches a legend in the legend box, raise an event on the corresponding series.
For an example of usage for such events, see http://www.highcharts.com/demo/line-basic
A simple way is to check whether the mouse down position is inside of the legend area, and decide which plot-series to be toggled by some calculation of both legend orientation and mouse position. Then you can either set the series invisible or just change the linestyle to none.
Is there any sample available about how to handle the event when the group name (for series where the group name is set) is clicked in the legend box?
Is there any progress on this? Having the possibility for an interactive legend would be great.