-
-
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
Hover rules for non-period-positioned bars #5554
Comments
In the case of very-narrow bars, we might need some pixel minimum? |
Open questions:
|
For very-narrow bars, it seems like what's on |
And if I add a scatter trace, then the scatter rules about the winning point take over, and then the bars get pulled into the hoverset in a compatible way to the invariants above: {
data: [
{ type: "bar", x: [1, 10, 1000], y: [1, 2, 3] },
{ type: "scatter", x: [1, 10, 1000], y: [1, 2, 3] }
]
} |
To recap what we discussed in Slack today... in the pen here https://codepen.io/MojtabaSamimi/pen/QWpKvPO it should not be possible to get just a single scatter point in the hoverset in compare or unified modes. |
Also, please note that the intent of this issue is bar traces only. Let's discuss box traces in another issue. |
The new hover invariants in both compare and unified hovermodes for bars that are not period-positioned are:
(bar.x +/- width/2)
(bar.x +/- width/2)
N.B.
(bar.x +/- width/2)
here includes the gapThe text was updated successfully, but these errors were encountered: