-
-
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 info does not always display for bar traces with many values #779
Comments
It looks like aliasing due to the very large number of bars. In other words, the bars are less than one pixel wide so that, although the browser renders a sliver of blue, it's not actually possible to place the mouse on top of some of the bars. At risk of sidestepping the issue, is it possible that a filled scatter would be a better fit? |
Ideally, I'd like to preserve the bar structure for when the plot is zoomed-in. But a filled scatter definitely seems like a good workaround when there are this many bars. |
Confirming the described behavior. As @rreusser points out, I'm not sure how to fix this though. |
Relevant code is traces/box/hover.js and plots/cartesian/graph_interact.js#inbox. Perhaps a tweak is necessary for sub-pixel bar widths, but it would require digging in and dissecting the logic a bit more. |
See also: #780 (a different issue, but doesn't appear totally unrelated to or unaffected by potential solutions here) |
closed, probably by #2218 |
Bar traces with many values can sometimes have areas where hover info does not appear at all.
See here for an example. By moving your mouse left and right along the plot, you should be able to find areas where hovers do not appear, even though there is data in those areas.
The text was updated successfully, but these errors were encountered: