How to hide the "Subcategory" text

I used px.bar(df, x=“Subcategory”, y=“Percentage”, color=“Facility”, barmode=“group”…" to plot a bar chart with subcategory.

How should I hide the “Subcategory” text below the x-axis ?

Thanks in advance

HI @aiya6502 welcome to the forums.

I would try

fig.update_xaxes(title_text="")

Great! It worked.
Thanks a lot.

1 Like