Skip to content

Hover Labels Overlap in 2d scatter plot #3603

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

Closed
tfg250 opened this issue Mar 4, 2019 · 2 comments · Fixed by #3645
Closed

Hover Labels Overlap in 2d scatter plot #3603

tfg250 opened this issue Mar 4, 2019 · 2 comments · Fixed by #3645
Assignees
Labels
bug something broken

Comments

@tfg250
Copy link

tfg250 commented Mar 4, 2019

In my 2D scatter plot, the hover labels for closely spaced traces overlap when I think they should be stacked. It appears to be related to the level of zoom. Is the intended behavior for the labels to overlap when zoomed out?

A quick example is here:
https://plot.ly/~tfg250/141

In this plot, the initial view shows this:
image

Zooming in a bit and it changes to the expected view:
image

python code used to generate this plot:

traces=[]
for i in range(10):
    x=[i,i+1]
    y=[i,i+1]
    traces.append(go.Scatter(x=x,y=y))

for i in range(10):
    x=[i,i+1]
    y=[i+1,i+2]
    traces.append(go.Scatter(x=x,y=y))

layout = go.Layout(xaxis=dict(range=[0, 100]),yaxis=dict(range=[0, 100]))

fig = go.Figure(data=traces,layout=layout)
py.plot(fig, filename='test.html')
@antoinerg
Copy link
Contributor

Thank you @tfg250 for reporting this issue!

@antoinerg antoinerg added the bug something broken label Mar 5, 2019
@antoinerg
Copy link
Contributor

Codepen for this issue: https://codepen.io/antoinerg/pen/MxEjeo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants