Skip to content

Hovertext doesn't display correct text on current point when both points have the same x coordinate #1245

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
m2jobe opened this issue Dec 11, 2016 · 3 comments

Comments

@m2jobe
Copy link

m2jobe commented Dec 11, 2016

As seen in the image below, when two points have the same x coordinate (in this case -110) the hover text for the first generated point is displayed rather than the correct hover text for said point

screen shot 2016-12-11 at 3 22 42 pm

@m2jobe
Copy link
Author

m2jobe commented Dec 11, 2016

when moving the initial point to x coord -100, since they are no longer on the same point we can now see the correct hover text for the point we were hovering over.
screen shot 2016-12-11 at 3 24 14 pm

@etpinard
Copy link
Contributor

etpinard commented Dec 11, 2016

Probably a duplicate of #720

Can you share a reproducible codePen / jsFiddle / jsBin example - as per our contributing guidelines.

@m2jobe
Copy link
Author

m2jobe commented Dec 12, 2016

Hi I was able to solve this by adding hovermode:'closest' to the layout of the graph

@m2jobe m2jobe closed this as completed Dec 12, 2016
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