question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

legend.grouporientation

See original GitHub issue

Right now, legend items in legend groups always stack vertically, and then the groups themselves are laid out per legend.orientation. We need a new legend.grouporientation attribute that will cause the items within a group to lay themselves out left-to-right.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolaskruchtencommented, Jun 22, 2021

Clarification: legend.orientation here essentially defines the relationship between groups i.e. "v" means “groups stack vertically” and “h” means “groups are laid out horizontally and wrap”. This is the current state of affairs if you assume that each trace is in its own group (which might not quiiite be right but close enough).

legend.grouporientation then will define the relationship between traces in a group which today is always "v" and we want to enable "h".

0reactions
archmojcommented, Jun 22, 2021

For example: groupspacing : 0 (or -1) could be used to enter new items to the group and it could be set to e.g. 24 (px) to enter the items on the same line.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Legends in Python
Grouping legend items together by setting the legendgroup attribute of traces causes their legend entries to be next to each other, and clicking...
Read more >
R plotly: how can i set legend orientation for a second ...
I know I can set the legend orientation of a plotly plot with layout(legend ... Plotly stacks legend groups whether you want them...
Read more >
Legend title not shown in horizontal orientation · Issue #1704
The legend title is not shown for legends in horizontal orientation. Here's a line plot with a legend. library(ggplot2) library(plotly) plt ...
Read more >
Legend
Determines the behavior on legend group item click. ... Sets the font for group titles in legend. ... Sets the orientation of the...
Read more >
Formatting a Legend
Open the menu of label orientation options in one of the following ways: Ribbon: On the Format tab, in the Labels group, click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found