I'm trying to give a name to the axis of my graph with plotly express, but the figure shows no axis name. I would like that Y was called "$$$" and X was called "years".
Any idea of what is wrong?
Thank you!
This is my code:
def interactive_plot(df,title=f"Portfolio growth since {year}"):
fig = px.line(title=title,labels{"y":"$$$","x":"years"})
for i in df.columns[:]:
fig.add_scatter(x=dates[:-1],y=df[i],name=i)
fig.show()