I am completely new to data visualisation with Plotly. I've created a stacked bar chart with text labels, but the single-digit value have rotated automatically. How can I make all texts shown without being rotated?
fig = px.bar(
data_stack,
y = "newform",
x = "percentage",
color = "Qcat",
barmode = "stack",
text = "size",
orientation = "h")
Here's a screenshot for reference:

fig.update_traces(textangle=0)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With