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

Hover info does not always display for bar traces with many values #779

Closed
caseyross opened this issue Jul 26, 2016 · 6 comments
Closed
Labels
bug something broken

Comments

@caseyross
Copy link

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.

@rreusser
Copy link
Contributor

rreusser commented Jul 26, 2016

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?

@caseyross
Copy link
Author

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.

@etpinard
Copy link
Contributor

Confirming the described behavior. As @rreusser points out, I'm not sure how to fix this though.

@rreusser
Copy link
Contributor

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.

@rreusser
Copy link
Contributor

rreusser commented Jul 28, 2016

See also: #780 (a different issue, but doesn't appear totally unrelated to or unaffected by potential solutions here)

@alexcjohnson
Copy link
Collaborator

closed, probably by #2218

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

No branches or pull requests

4 participants