-
-
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
Hovering over super-imposed pts (only) considers hoverinfo of top trace #720
Comments
Thanks for the report. Here's a more compact reproducible example: http://codepen.io/etpinard/pen/ZOJQyk? To note, the problem is also present on |
Oh wait. My mistake your example isn't a The problem is in the cartesian hover code. Preliminary diagnostic: Hovering of superimposed picks the top trace and honours the See #438, #495 and #678 for more info on the topic. Thanks again for this report. In the meantime here's an easy workaround: http://codepen.io/etpinard/pen/qNXNwz where simply reordering the traces gets you back to the desired behaviour. |
More generally, Should hovering over super-imposed traces on |
Ok. I found a way to fix this (see At the moment, hovering with So, in order to make the picked point consistent across hover label, |
Thanks for the quick reply! Unfortunately my javascript skills are limited so I may not be able to meaningfully contribute. I did take the javascript from your codepen (http://codepen.io/etpinard/pen/qNXNwz) and add that to my original pen (http://codepen.io/bxlxux/pen/jALWAK). I understand the simplification, but since we're running a batch process to generate over 100+ charts our json gets written into a script tag within the html file rather than a url variable you used. That's why it's quite lengthy. So if you looked at my pen http://codepen.io/bxlxux/pen/jALWAK, how could I point to the json? I think this works if I can get the that sorted. Thanks! |
I'm not sure I understand your question. All you need to get back the desired behavior is to reorder your traces such that the above superimposed trace does not have |
Okay I see what you're saying. I guess the change in 1.10.1 requires us to do this reordering of traces that we didn't have to do in 1.10.0. We manually changed the hoverinfo to none for several of the objects in our map like the points indicating the city, because we added them to the tooltip on hover. It would be nice to not have to reorder the traces since we have over 100+, but alternatively we can stick with 1.10.0. |
Changing the order in which we add the various geometric layers to the plot in R (adding the tooltips last with |
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 |
Hello - I came across this bug #493 though I'm not sure it's the same issue.
I have this test codepen running with "hovermode":"closest" set. The text displays when hovering over the lines. However, when I change the cdn to 1.10.1 or later the hover no longer works. I can only get the text to display when removing "hovermode":"closest", but it's displaying all text based upon x and not the way I'd like it to which is "closest".
http://codepen.io/bxlxux/pen/jALWAK
The text was updated successfully, but these errors were encountered: