I am trying to reduce the decimal places to 2 in this plot:
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()