Scatter series textposition to avoid overlap?

Is any way to prevent overlap in text labels? I am very new to plotly (first day) and have several series where the data gets quite close so the labels overlap which I would like to avoid if possible.

@Stevie Please post an image to see what you are talking about or paste here the block of code where you defined the trace(s).

@empet Here you go. As you can see some of the text labels overlap making them unreadable.

@Stevie To avoid label overlapping, just increase the height of the plot.

In layout set:

width=800,
height=600, #or more
autosize=False

and you’ll get a nice plot :slight_smile:

Unfortunately we are restricted in what we can set the height of the chart to so that it fits in with the rest of the page. It is also not guranteed to avoid overlap if the data is really close.

Were you able to find a solution for this?

One way to reduce overlap is by adjusting the position of the text labels. You can use the textposition attribute to specify where the text should appear relative to the data points.