Skip to content

Single-toggle of grouped traces in legend #3116

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

Closed
elvis1020 opened this issue Mar 16, 2021 · 4 comments
Closed

Single-toggle of grouped traces in legend #3116

elvis1020 opened this issue Mar 16, 2021 · 4 comments

Comments

@elvis1020
Copy link

@mojoaxel started this issue on plotly.js plotly/plotly.js#3135
and @mcstarioni described a desired behavior that suits perfectly for the problem.
In summary, It would be very useful that legendgroups have a separate handle to toggle the whole group and still be able to toggle the traces separately by specifying showlegend=True.
This issue was opened almost an year ago on plotly.js, any plans for a feature like this?

@nicolaskruchten
Copy link
Contributor

That feature isn't being worked on by anyone as far as I know, but we'd happily accept a pull request :)

@rithwikjc
Copy link

@nicolaskruchten I am a noob, but this maybe something that I could perhaps accomplish, given enough time. Can you or someone please point me to the relevant code blocks for legendgroups, toggling traces via legends. This would help me get started. You maybe busy, so otherwise, I'll try to find it myself.

@gvwilson
Copy link
Contributor

Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson

@Mo-Gul
Copy link

Mo-Gul commented Mar 17, 2025

For the record:
When I see it correctly, this feature was already implemented, see

- Added `legend.groupclick` options

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

No branches or pull requests

5 participants