Hi!
I’m working on creating a horizontal bar chart with category values, and I’m using the following code snippet:
fig.add_trace(go.Bar(
y=df_last[‘NAME’],
x=df_last[‘Cost’],
name="From " + first_month_day_format + " to " + last_day_format,
text=df_last[‘Cost’],
textposition=‘inside’,
textfont=dict(size=20, family=‘Arial’),
textangle=0,
marker_color=‘blue’,
showlegend=True,
orientation=‘h’
))
While building the chart, I’ve encountered an issue with the size of the text font within the bars. The text does not fit well in some cases (include in “large columns”)
Can any one help me with this?