Skip to content
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

legend items (trace names) in horizontal legends aren't aligned nicely if all in one row #1193

Closed
salim-b opened this issue Nov 23, 2016 · 1 comment

Comments

@salim-b
Copy link
Contributor

salim-b commented Nov 23, 2016

The problem occurs if legend = list(orientation = "h") (in R) or layout = {legend: {"orientation": "h"}}; (in JS) is set and the frame width is large enough to place all legend items on one line.

The logic to align the legend items in a grid (see also #786) is generally a good thing for responsiveness, but doesn't look good if the resulting grid consists of only one row as in the example below:
example
(note the spacing between SRG SSR, Schweizer Privatsender and Ausländische Sender; here is the same chart hosted on plot.ly)

Some more information I could find:

@etpinard
Copy link
Contributor

Thanks for writing.

This is in fact the same issue as #960 (comment)

I'll mark this as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants