Hello! How can I show last y value on tick label side like this one Dropbox? I tried fig.add_annotation but it canโt position on the y tick label side.
Hi @JackTang ,
based on your image, is the result should display something like this ?
you can set xref = "paper" attribute in annotation, then adjust the x attribute value over 1 for example above I use x=1.05, and set xanchor='right', yanchor='middle'.
fig.update_layout(annotations=[dict(
xref='paper',
x=1.05,
y=last_point,
xanchor='right',
yanchor='middle',
text='{}'.format(last_point),
showarrow=False,
font=dict(size=16,color='red')
)])
