Change the orientation of the Label

How do I change the angle of the x-axis labels. How do I do that?Attached is the reference image.I want to change the orientation of x-axis labels.

Hi @Sam2
Try this:

fig.update_layout(
    xaxis = go.layout.XAxis(
        tickangle = 45)
)
2 Likes

This is the direction of the ticks, but what about the axis labels?