Add legendgroup for annotations
See original GitHub issueOne common use case I have run into for annotations is in multi-trace plots to have a series of annotations (one per trace) that each describe the same quality in their respective data. For use cases like this, where annotations are associated with specific traces, it would be awesome to be able to give them a legendgroup
attribute so that they can be shown/hidden in the exact same situations as the traces they correspond to (turns out it’s hard to replicate Plotly’s native trace show/hide behavior with plotly_legendclick/doubleclick).
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Linking Plotly Annotations with Multiple Traces
Hello all, I'm currently working with the latest version of plotly in Python. I've run into an issue that I'm hoping there is...
Read more >python - Annotations (legend text) in a line subplots (time series)
1 Answer 1 · an approach is to add additional Scatter traces that contain the text of the annotation you require · have...
Read more >How to set up multiple subplots with grouped legends using ...
How to set up multiple subplots with grouped legends using Plotly in Python? ... Scatter(x=data, y=data, legendgroup=str, showlegend=bool).
Read more >First steps 3: Adding legends, text, and annotations
You will also add additional information to your plot by including annotations. Adding and styling a legend#. Bokeh automatically adds a legend to...
Read more >A complete introduction to Plotly, from beginner to advanced.
Use of 'legendgroup' attribute in each trace. ... How to add annotations to plots using go.layout.Annotations().
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi! Any update on this? Would be a really useful feature to have.
Interesting! I have actually never come upon the trace uid – could you point me to some documentation for how I’d discover and link it?