-
-
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
compare/unified hover should include all points at same coordinate #4656
Comments
The approach suggested by @alexcjohnson seem to work fine for the simple case shown above: https://codepen.io/antoinerg/pen/gOpKwPg (ie. scatter and bar). Now, I wonder if there are cases for which this may lead to undesirable behavior. WIP on branch |
For one, categorical axis are not working ATM. Working on a fix. |
My branch |
There's a reason the title of this issue says "should include all points at same coordinate" 😏 |
Indeed :) I was just noticing while testing that as I sweep in an increasing-x direction, I get the hover at 1, then 1.1, then 1 again even though my mouse is now at 1.2 or so. C'est la vie: the bar picks it up and then adds the point from 1. It's more correct than anything else I can think of right now :) |
Some tests are failing with the changes made in branch @alexcjohnson when you have a chance, can you take a look at branch |
For boxes and violins, the 1.52 behaviour for compare was good IMO. |
In x-unified and x-compare modes, it should never be possible for there to be two data with the same x-coordinate and only one of them is displayed in a hoverlabel. I know compare mode doesn't currently behave this way but I consider it a bug.
The solution proposed by @alexcjohnson seems good to me:
The text was updated successfully, but these errors were encountered: