Skip to content

Space in x-value causes combined bar/scatter trace hover text misalignment with large data set #803

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
csyrs opened this issue Aug 1, 2016 · 2 comments
Labels
bug something broken

Comments

@csyrs
Copy link

csyrs commented Aug 1, 2016

See here: http://jsfiddle.net/cpanmc8m/
When hovering over the chart, the x-value identified by the hover text differs between the two traces, even though the traces have the same x-values. For example, the scatter trace may show that the hovered x-value is 40, while the bar trace shows hover text for value 39.

Increasing the amount of data relative to the chart width appears to exacerbate how far apart (numerically) these hover text values are. On the other hand, reducing the amount of data seems to make the hover text work as expected.

The immediate culprit seems to be the space character in each x-value. Replacing the space character with a letter or with a tab character does not cause the same issue. Instead, this causes a reversion to the behavior described in #780 (bar trace hover text is not shown).

@etpinard
Copy link
Contributor

etpinard commented Aug 2, 2016

Thanks.

@etpinard etpinard added the bug something broken label Aug 2, 2016
Narghast pushed a commit to GeorgeGhiottone/plotly.js that referenced this issue Sep 29, 2016
Aggiunto icona help
@alexcjohnson
Copy link
Collaborator

fixed, probably by #2218

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

No branches or pull requests

3 participants