✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

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)
)
1 Like