Skip to content

Scatter.hoverlabel.align = "left" overflows text for labels that would otherwise have been center-aligned #3774

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
zig1000 opened this issue Apr 16, 2019 · 1 comment · Fixed by #3781
Assignees
Labels
bug something broken

Comments

@zig1000
Copy link

zig1000 commented Apr 16, 2019

When a scatterplot with multiline hovertexts is left without alignment set, the auto-alignment will set some nodes to have center-aligned text, as expected.

However, when "hoverlabel": {"align": "left"} is added, those same nodes will have the text overflowing to the left of the hoverbox. A couple such sample nodes are highlighted in pink in the attached example. Unbugged example without hoverlabel.align set is also included.

Bugged (with align): https://jsfiddle.net/81zjvhxa/
Unbugged (without align): https://jsfiddle.net/meor6qjg/

@zig1000 zig1000 changed the title [Bug] Scatter.hoverlabel.align = "left" overflows text for labels that would otherwise have been center-aligned Scatter.hoverlabel.align = "left" overflows text for labels that would otherwise have been center-aligned Apr 16, 2019
@etpinard etpinard added the bug something broken label Apr 16, 2019
@etpinard etpinard self-assigned this Apr 16, 2019
@etpinard
Copy link
Contributor

Thanks for reporting!

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 a pull request may close this issue.

2 participants