-
-
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 period-positioned traces #5553
Comments
Open questions:
|
The behaviour using |
Funny observation regarding the codepen above: if I turn spikelines on, it's easy to get the spikelines on the bar but not the black axis-hoverlabel. I think this exposes an additional implicit invariant: the "winning point" is the one that gets both the spikeline and the black axis-hoverlabel, right @alexcjohnson ? |
Also, I notice that the spikeline behaves differently in compare and unified modes: the spikeline in compare mode seems to want to stick to the bar, but in unified mode it has the behaviour I think I would expect. I think that the relationship between unified hovermode and spikelines is that we coerce the spikedistance and/or spikesnapdistance when we set hovermode to unified. The spikeline behaviour in unified mode seems better to me, but maybe there is some additional context around spikeline/snapping behaviour that I don't know about. |
Re spikeline and winning point: there is the Also, in the codepen above, hovering on the left-most bar at exactly the center produces TWO orange hoverlabels in compare mode! |
Let's ignore anything to do with spikelines in this issue and have that conversation in #5619 |
These invariants should hold for period-positioned traces (the word "point" below should be taken to mean scatter marker or bar or whatever other kind of period-positioned mark we have) in both compare and unified hovermodes:
cc @alexcjohnson
See also #5292
The text was updated successfully, but these errors were encountered: