You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think setting layout.hovermode: 'closest' will give you the desired result.
This did not solve the problem because then only the hove for the 'closest' trace is shown and no longer the hovers of nearby data-points:
I would still like to see nearby data-points. My point here is that I find it very unexpected, that the hover for x-values in displayed completely different to let's say y or the text values.
(btw: Why are y-values not also realized as a y-axis bound hover?).
I see potential here to make the general hover-behavior more consistent.
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson
Activity
antoinerg commentedon Oct 24, 2018
Thank you @mojoaxel for your interest in plotly.js!
I completely agree this would be a useful improvement. This ties into issue #3007 which aim to provide total control over the content of hover labels.
This is still work in progress, but the following PR #3126 should allow you to get this behavior by specifying an
hovertemplate.etpinard commentedon Oct 25, 2018
@mojoaxel I think setting
layout.hovermode: 'closest'will give you the desired result.mojoaxel commentedon Oct 28, 2018
This did not solve the problem because then only the hove for the 'closest' trace is shown and no longer the hovers of nearby data-points:
I would still like to see nearby data-points. My point here is that I find it very unexpected, that the hover for x-values in displayed completely different to let's say
yor thetextvalues.(btw: Why are y-values not also realized as a y-axis bound hover?).
I see potential here to make the general hover-behavior more consistent.
etpinard commentedon Oct 30, 2018
Could you clarify what you mean here? A screenshot should suffice. Thanks!
mojoaxel commentedon Oct 30, 2018
To make this clear: This is not the behavior I need, it's just not very consistent.
etpinard commentedon Oct 30, 2018
Ok, and would you call the behavior with
hovermode: 'y'consistent withhovermode: 'x'(the default):https://codepen.io/etpinard/pen/bmyJQE ?
gvwilson commentedon Jun 11, 2024
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson