Skip to content

allow multiple legends by size, symbol, color etc #5099

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

Open
nicolaskruchten opened this issue Aug 25, 2020 · 5 comments
Open

allow multiple legends by size, symbol, color etc #5099

nicolaskruchten opened this issue Aug 25, 2020 · 5 comments
Labels
feature something new P3 backlog

Comments

@nicolaskruchten
Copy link
Contributor

nicolaskruchten commented Aug 25, 2020

Breaking off of #1668 ...

Multiple users have requested the ability to have per-visual-attribute legends, similar to systems like ggplot2, Tableau etc so one legend for discrete color, one for size, one for symbol and so on. This is distinct from simply having multiple legends where each trace has a single legend item because in this concept, each trace would cause a legend item to appear in each legend, and furthermore, each legend item could refer to multiple traces. It's more similar to our existing coloraxis/colorbar concept than to our legend concept.

The major challenge for us is interactivity: it's relatively easy in a static tool like ggplot2 or matplotlib to just draw a second legend, but our legends support click-to-toggle etc (although our colorbars don't, today, and should!) and this would require a fairly big engineering lift.

@nicolaskruchten
Copy link
Contributor Author

It's a good feature and we'd love to have it in the library but it's not on anyone's roadmap at the moment as far as I know. That said, we as maintainers would be happy to help someone from the community to implement it in Plotly.js, or to accept sponsorship to get it on to our short-term roadmap :)

@nicolaskruchten
Copy link
Contributor Author

nicolaskruchten commented Sep 11, 2020

This issue has been tagged with NEEDS SPON$OR

A community PR for this feature would certainly be welcome, but our experience is deeper features like this are difficult to complete without the Plotly maintainers leading the effort.

What Sponsorship includes:

  • Completion of this feature to the Sponsor's satisfaction, in a manner coherent with the rest of the Plotly.js library and API
  • Tests for this feature
  • Long-term support (continued support of this feature in the latest version of Plotly.js)
  • Documentation at plotly.com/javascript
  • Possibility of integrating this feature with Plotly Graphing Libraries (Python, R, F#, Julia, MATLAB, etc)
  • Possibility of integrating this feature with Dash
  • Feature announcement on community.plotly.com with shout out to Sponsor (or can remain anonymous)
  • Gratification of advancing the world's most downloaded, interactive scientific graphing libraries (>50M downloads across supported languages)

Please include the link to this issue when contacting us to discuss.

@gvwilson
Copy link
Contributor

gvwilson commented Jul 5, 2024

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 a while, 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. Alternatively, if it's a request for tech support, please post in our community forum. Thank you - @gvwilson

@gvwilson gvwilson closed this as completed Jul 5, 2024
@j-andrews7
Copy link

This is still not functional in plotly.js (v2.33.0), see #7023.

@gvwilson
Copy link
Contributor

gvwilson commented Jul 6, 2024

Thanks @j-andrews7 - I'll reopen and add to our backlog, but I don't know when or if we'll get to it :-(

@gvwilson gvwilson reopened this Jul 6, 2024
@gvwilson gvwilson self-assigned this Jul 6, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson changed the title Multiple legends: by size, symbol, color etc allow multiple legends by size, symbol, color etc Aug 9, 2024
@gvwilson gvwilson added feature something new P3 backlog labels Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P3 backlog
Projects
None yet
Development

No branches or pull requests

3 participants