Horizontal legend items not visible when many legend items
See original GitHub issueWas pointed out in #766 that scrolling not intended for layout.legend.orientation = 'h'
. Example workaround is to use legend groups.
This is not a great solution, however, as it means clicking the legend group hides/shows ALL traces in the group (see jsfiddle).
Proposing that plotly.js implement something similar to ggplot2 which automatically wraps additional legend items on horizontal legend orientation. Especially on mobile portrait orientation, this allows the graph data to take up the entire width of the screen and push the legend below the graph which is much preferable in my view.
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (13 by maintainers)
Top Results From Across the Web
Changing a legend from vertical to horizontal - Esri Community
I have a simple legend that I'd like to display horizontally, across the bottom of an mxd. I could convert each element to...
Read more >Work with a legend item—ArcGIS Pro | Documentation
Legend items always display the legend patch set for the feature layer. You can change the patch by adjusting the layer's symbology. Legend...
Read more >Matplotlib: how to show legend elements horizontally?
I'd like to set the legend to be displayed horizontally. I do not mean the text of the legend like described in the...
Read more >How do I get legends to show horizontally across at the bottom ...
I have already tried making the legend container "floating"" and also choosing to arrange items in a single row. The problem that I...
Read more >QGIS legend horizontal not vertical - GIS Stack Exchange
In QGIS 2+ legend items can be arranged in columns. enter image description here.
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
Yeah. I agree. Your solution sounds like a solid fallback for extra-wide legends. If ever some users want a more fine-grained legend layout, we could always add support for something like:
down the road.
@n-riesco what do you think?
Any updates on this?