-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Hoverlabel overlaps each other #6917
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
Hello, |
@archmoj @ndrezn for visibility on the right people maybe? It seems that mixing ![]() Reverting commit 2b4584d indeed fixes the issue (in particular just reverting this line ) but of course re-introduces potential overlap of labels with axis labels. ![]() Here's the JSON I used for testing in the dashboard{
"data": [
{
"type": "scatter",
"y": [0, 1, 2, 3],
"x": ["CAT 1", "CAT 2", "CAT 3", "CAT 4"]
},
{
"type": "bar",
"y": [0, 1, 2, 3],
"x": ["CAT 1", "CAT 2", "CAT 3", "CAT 4"]
},
{
"type": "scatter",
"y": [0, 1, 2, 3],
"x": ["CAT 1", "CAT 2", "CAT 3", "CAT 4"]
},
{
"type": "bar",
"y": [0, 1, 2, 3],
"x": ["CAT 1", "CAT 2", "CAT 3", "CAT 4"]
}
],
"layout": {
"width": 600,
"height": 400,
"hovermode": "x"
}
} Note that the axix-label overlap can be resolved by zooming, while labels removed cause of the above change will remain invisible even after zooming. |
@archmoj / @alexcjohnson attempting a small fix (one-liner) that does not revert the above fix in #6954 if you're open for contributions! |
Always open for contributions! We'll take a look. Thanks for opening the PR! |
Fixed by #6954. |
Hello,
I found an issue causing hover labels to overlap each other.


It can look quite bad in some cases:
Here is a codepen to reproduce it
https://codepen.io/Amine-Mqadmi/pen/JjVGpym
I think it is has been introduced in 2.19.0, probably in this PR: #6442
You can see in the discussion @alexcjohnson noticing it, but it seems it has not been actually fixed in the end.
The text was updated successfully, but these errors were encountered: