I am using ploltly graph object to create bar graph. But somehow not able to increase the size of text displayed outside the bars of the graph

speed_fig.add_trace(go.Bar(
x=filtered_data[‘names’],
y=filtered_data[‘data’],
name=’ Data’,
marker_color=‘#FC3C80’,
text=filtered_data[‘data’],
textposition=“auto”,
textangle=90,
textfont=dict(size=18),
hovertemplate=‘
Speed: %{text}’,
)
)

Hi @preety, please share a screenshot of the figure you have so far and indicate which piece of text you wish to modify.

Also if you could format your code using the code formatter that’d be great.

1 Like