Skip to content
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

box/violin hoverinfo breaks when another trace is layered on top #3747

Closed
cpsievert opened this issue Apr 8, 2019 · 5 comments
Closed

box/violin hoverinfo breaks when another trace is layered on top #3747

cpsievert opened this issue Apr 8, 2019 · 5 comments

Comments

@cpsievert
Copy link

https://codepen.io/cpsievert/pen/YMpYyg

@etpinard
Copy link
Contributor

etpinard commented Apr 8, 2019

What's the desired behavior here?

@cpsievert
Copy link
Author

When the box hover is triggered it should show the 5-number summary as opposed to just the median

(I realize this is a pretty weird corner-case)

@etpinard
Copy link
Contributor

etpinard commented Apr 8, 2019

Right, when there's a scatter trace alongside a box trace we no longer consider the graph to be horizontal, to the default layout.hovermode is 'x'.

Setting hovermode: 'y' gives: https://codepen.io/etpinard/pen/MRbrEO which I think is what you're looking for.

@etpinard
Copy link
Contributor

@cpsievert ok if I close this?

Note that we're planning on switching the hovermode default to 'closest' in v2, so stuff this and this won't happen.

@cpsievert
Copy link
Author

ok yea

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