Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legend with groups of series - possibility to enable/disable all series from the group? #1631

Open
abrasat opened this issue Jul 24, 2020 · 2 comments

Comments

@abrasat
Copy link

abrasat commented Jul 24, 2020

Feature description

Is it possible to add a feature to a legend containing groups of series, to enable/disable all series from the group, when clicking on the group name?
It would be a similar feature to enabling/disabling single series, by clicking on their name in the legend.
Or is at least possible to catch the click event on the group name?

@abrasat
Copy link
Author

abrasat commented Jul 27, 2020

I think that the Legend.Rendering.cs could be extended with something like a SeriesGroupPosMap, similar to the SeriesPosMap. This would allow in the LegendHitTest method the identification the group name that was clicked. Additionally, a custom callback could be supported in the LegendHitTest, to allow the application to add its own logic for handling the click event on a series or group from the legend box.

@VisualMelon
Copy link
Contributor

The legend hit-testing will probably need re-designing at some point (it isn't very extensible at the moment, as you say), but your proposal of a SeriesGroupPosMap (maybe SeriesGroupTitlePosMap) could be done very simply for the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants