-
-
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
Weird hover issue when drawing multiple graphs in a parent div with column-count: 2
#1902
Comments
One small note: I think it's best to avoid In other words, one of your plots is actually inside the other, though fixing that doesn't fix the weird behavior. Otherwise I wasn't immediately able to succeed in figuring out which magic css flag fixes the behavior. 😞 |
Whoaa… check out three columns… that might at least hint at how this is implemented. Perhaps it rasterizes and then splits it into columns as a rendering effect? I wouldn't at all be surprised if there were browser bugginess for how this interacts with relative/absolute positioning, mouse coords (which, surprisingly, seem to work), SVG, etc. |
We can at least apply What this shows though is that the browser is doing something strange with Also notice that the modebar jumps down below the plot momentarily when you mouse over from one plot to the next... not sure why that would happen as it's absolutely positioned wrt its parent... but might be related to all this. |
I also tried |
Any known workarounds for this issue? |
I managed to "solve" this problem by manually editing the style of the div. You can see how it is done here. This is the code I used:
In this example, fig and fig2 will be put side by side and the hover text in fig2 will succesfully appear. |
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 |
https://codepen.io/chriddyp/pen/aweQae
Originally posted plotly/dash#86
The text was updated successfully, but these errors were encountered: