I am trying to reduce the decimal places in the text above the histogram bins to 2 places. Here is the graph:
And, here is the code:
fig = px.histogram(df10, x="S_Hour", histnorm='percent', text_auto=True,
labels=dict(S_Hour='Hours of the Day'))
fig.update_layout(yaxis_title="Percents (%)")
fig.update_layout(xaxis = dict(tickmode = 'linear', tick0 = 0, dtick = 1))
fig.update_traces(textfont_size=12, textangle=0, textposition="outside",cliponaxis=False)
fig.show()
Thanks.

