When two points have same [x,y] values, the scatter plot only show one point. Is there a way to display all points and their hover info even when there are overlap?
I can not use fig.update_layout (hovermode = 'x') because I have so many points on the same X axis
import plotly.graph_objects as go
fig = go.Figure()
fig.add_trace(go.Scatter(
x=[0, 1, 2,1,2],
y=[3, 3, 3,3,3],
mode="markers",
text = ['m1', 'm2', 'm3','m4','m5']
)
)
fig.show()
