-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Scattergl Hover:closest and Click only active with first-plotted trace #2079
Comments
Hi @tobsecret , I tried to reproduce the problem but with your example I can click on nodes and they appear as in your screenshot above. What happens when you click on nodes? Nothing? Is there something printed in the javascript console? |
Thanks for testing it out, @emmanuelle ! I am not sure I understand correctly. Did you copy the big code box from the example I gave above and got something similar to the screenshot? Does the hovering/ clicking still work when you construct the figure like this:
|
Was there found any solution to this? I have the same problem, where only the first scatter plot is able to provide hoverinfo. In the example code for the network from the plotly website, if you remove |
That's interesting! I have just resorted to using |
EDIT
Problem:
Scattergl
hover and click functionalities are only available for the first-plotted trace if one has multiple traces but does not matter when usingScatter
./EDIT
I am using plotly 4.4.1 and was trying out the network demo on the plotly website. Since I have lots of nodes and edges in my graph, I tried using
Scattergl
instead.This works and speeds up the plotting but disables the tool tips on hover on
hovermode="closest"
. The hover does however still find the points, which we can see when we press "Toggle Spike Lines", which snap onto the point our cursor is closest to.Clicking on the "compare data on hover" button let's tool tips appear but this is a very erratic experience when we have a lot of points close to each other.
EDIT: I have produced a smaller code example in the next comment on this thread.
Not sure if this was addressed in plotly/plotly.js#4323 which should be part of my version (4.4.1).
Below is the network demo with
Scatter
substituted forScattergl
, which can reproduce my issue:The text was updated successfully, but these errors were encountered: