Skip to content

Hover Labels Overlap in 2d scatter plot #3603

@tfg250

Description

@tfg250

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')

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions