-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Should we expose an official version of Fx.hover that works for all subplot types? #1963
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
Comments
That's correct, You can try using
|
Hi @etpinard thank you for your reply. I will give Fx.loneHover a try and see if I can get it to do what we need. As for an official Plotly.hover method I personally think it could be very helpful. In our case we have points that are being used in multiple locations (i.e. a map and the plots) and they are linked. I am currently using the hover capabilities to perform "highlighting" when there is a hover on a point in a map that links to a point on the plot. I don't know how common of a use case that is but it is pretty key to the application we are working on. |
It'd be nice if this was mentioned in the Plotly docs since the official docs use Fx.hover directly with no mention of scattergl. I concur that a Plotly.hover method would be helpful. |
@etpinard where is the scattergl code that creates hovers in compare mode? EDIT it seems to be I noticed there's All I want to do is achieve the same behavior as compare mode, but across multiple subplots sharing the same x axis. It'd be nice if there was an option for this. e.g. |
Any updates on this issue? In my case, my goal is to trigger hover event on the scattergl plot for comparison, and |
Hello,
I recently switched my app from using scatter to scattergl and realized that the Fx.hover method does not work correctly for that plot type. This codepen shows that the change to scattergl breaks the hover call. I did not see this listed anywhere as a gl2d limitation so I wanted to get it out there. I also realize that the plan is for Fx to be removed in the future however I was hoping there may be some plan to amend the hover method to work with scattergl.
A quick look through made it seem like one of the sticking points is that the hover method is looking for a "hoveron" field in the trace which is not present for scattergl. It is then set to an empty string and the hover code moves on without looking for any points to execute the hover on.
Thanks!
The text was updated successfully, but these errors were encountered: