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

Fix legend items aligning #2149

Merged
merged 2 commits into from
Nov 14, 2017
Merged

Conversation

apalchys
Copy link
Contributor

@apalchys apalchys commented Nov 8, 2017

This PR fixes legend items (trace names) aligning in horizontal legends if all in one row, related to #1193 and #960 and does not affect group legends and multi row legends.

Before

image

After

image

@etpinard
Copy link
Contributor

etpinard commented Nov 13, 2017

Can you share the "data" and "layout" attributes you used to generate the screenshots above?

@apalchys
Copy link
Contributor Author

Here is a demo:
https://codepen.io/plotly-demo/pen/eemVwO

@etpinard
Copy link
Contributor

Looks great - thanks!

Can you confirm that your patch does not impact https://codepen.io/anon/pen/RGozGE from #960 ?


Moreover, would you mind adding an image test mock to lock down your bug fix?

@etpinard etpinard added status: in progress bug something broken labels Nov 13, 2017
@apalchys
Copy link
Contributor Author

Confirm. It doesn't impact #960. Here is a demo with my changes: https://codepen.io/plotly-demo/pen/RjgJdR.

Added image test.
Thanks @etpinard

@etpinard
Copy link
Contributor

Very lovely PR and test. Thanks very much!

@etpinard etpinard merged commit 5388d32 into plotly:master Nov 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants