Skip to content

Legend scroll not showing on layout.legend.orientation = 'h' #766

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

Closed
psalmody opened this issue Jul 22, 2016 · 2 comments
Closed

Legend scroll not showing on layout.legend.orientation = 'h' #766

psalmody opened this issue Jul 22, 2016 · 2 comments

Comments

@psalmody
Copy link
Contributor

When using layout.legend.orientation.h and have more than a few legend items, they don't appear to scroll.

JSON code generated by ggplotly() from R but simplified. See jsfiddle

@n-riesco
Copy link
Contributor

At the time, I implemented horizontal legends, there were no plans for horizontal scroll bars.

As a workaround, the traces could be grouped. See the following example:

https://github.com/plotly/plotly.js/blob/master/test/image/mocks/legend_horizontal_groups.json

@etpinard
Copy link
Contributor

@psalmody as @n-riesco pointed, this is the intended behavior you can look at PR #535 starting from #535 (comment) for the rationale.

Bookkeeping duties imply closing this issue. But thanks for your interest for plotly.js 🍻

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

3 participants