-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Include shapes in legends #98
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
Comments
Yes, it would be doable to customize legend items with svg paths. Good suggestion, but this is not a high priority I'm afraid. |
I would also like to see this. |
This needs to be added please 👍 |
^ Seconded! |
Any update on this...? |
I've got a workaround with code using bars at: https://dash-ts-highlight.herokuapp.com/ |
I just had the case to use this. Wanted to show a highlighted region in the legend so all the information related to visual elements is in one place. |
I also have a few cases where this would be very nice. In my most recent case, I would like to show night time hours on a histogram of occurrences by hour in a day. (1) It would help explain the plot without external elements and (2) it would be nice to toggle on and off. |
I think this feature would be a great addition; very helpful for showing/hiding plot overlays! |
It's already been 5 years since this post. Is it being worked on or planned to? Would you accept pull requests that solve this? |
To be clear about what people want here, it's the ability to add legend items corresponding to certain items in This isn't on our roadmap, though if a company were interested in sponsoring it we'd be happy to talk https://plotly.com/consulting-and-oem/ But absolutely we'd be happy to accept and review a pull request. Before starting we should nail down the attributes to be created. I'm thinking these would be (within
If that's all we add, shapes will all show up at the bottom of the legend, unless they're put into the same Anything I'm missing? |
This issue has been tagged with 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. Sponsorship range: $10k-$15k What Sponsorship includes:
Please include the link to this issue when contacting us to discuss. |
Just came across this problem today and would love to see it as well :) |
same here!^ |
For R as well too. |
Same here! <3 |
Would love to see that as well! |
Same, would be great! |
Same, this option would be very welcome! |
Same. |
I also faced the same issue today. In my Legend even the Circle is not visible. I don't know why! It's just a plain line. that's it. |
Seconded |
WORKAROUND?I needed to make a legend for my shape colors so I may have found a workaround that'll suit the needs of others. It's hacky and uses bogus trace data just to fudge the already existent functionality into doing what I want. But it works.
|
Me also! |
Same here, find out that I need this |
@erikhuck this wouldn't allow you to toggle the shapes, correct? |
Honestly, it's been so long that I don't remember. You might need to try my solution and see. |
Would be awesome if we could add shapes to the legend
The text was updated successfully, but these errors were encountered: