I try to do some graphs with plotly.graph_object.
My figure works but not my text.
fig.add_trace(go.Scatter(x=[5,15,15,5],
y=[0,0,niveau_coupon[1], niveau_coupon[0]],
fill='toself',
fillcolor='grey',
line=dict(width=0),
showlegend=False,
mode='lines',
hoverinfo ='none',
text=["testttttttttttt"],
textposition='top right',
textfont=dict(color='white'),
))
Thanks for yours answers
The key change
mode="lines+text"
Also changed