oxyplot icon indicating copy to clipboard operation
oxyplot copied to clipboard

Events (mouse click, touch) on legends in legend box

Open objorke opened this issue 9 years ago • 4 comments

When the user clicks or touches a legend in the legend box, raise an event on the corresponding series.

objorke avatar Jan 04 '15 22:01 objorke

For an example of usage for such events, see http://www.highcharts.com/demo/line-basic

objorke avatar Jan 05 '15 07:01 objorke

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.

yiluo avatar Jun 16 '15 09:06 yiluo

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?

abrasat avatar Jul 27 '20 07:07 abrasat

Is there any progress on this? Having the possibility for an interactive legend would be great.

mennowo avatar Oct 12 '21 07:10 mennowo