-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Pick closest points to the winning point in compare mode and position unified hover box in front of winning point #5683
Conversation
If you look at this pen https://codepen.io/nicolaskruchten/pen/MWpoMJK?editors=0010 (built with the latest artifact from this branch) and move your mouse back and forth over the third point from the left (the "March 1" point period-positioned to the end of the month) you will see that it breaks the invariant: when the cursor is on the left, the bar point in the hoverset is Q1 and when the cursor is on the right, the bar point in the hoverset is Q2. March is in Q1 and so when March is the winning point, Q2 should never appear in the hoverset, regardless where the cursor is. |
If we draw a bar instead of a scatter point, and comment |
The value of |
@nicolaskruchten |
This is looking much better! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it! That's a lot of closed issues 💪
💃
Fixes #5681. cc: #5553
And fixes #5680 by c692eda.
Also closes ##5656 | Demo
@plotly/plotly_js