How do I change the axis labels in a plot?
px.line(… labels={})
What do I put in the labels dictionary? I can’t seem to find any examples online or in the documentation.
Thanks in advance.
How do I change the axis labels in a plot?
px.line(… labels={})
What do I put in the labels dictionary? I can’t seem to find any examples online or in the documentation.
Thanks in advance.
To change the x label or y label you can use the labels.
eg:
px.bar(data, x=months, y=‘Sales’, labels = {‘x’:‘Month’})
Hope this helps you