ok thanks for the answer. You need to force the xaxis
type to br category
. Iโm a bit surprised that itโs not done automatically, but setting it yourself does the job:
fig = px.bar(df, x='CLASS', y='SCORE')
fig.update_xaxes(type='category')
ok thanks for the answer. You need to force the xaxis
type to br category
. Iโm a bit surprised that itโs not done automatically, but setting it yourself does the job:
fig = px.bar(df, x='CLASS', y='SCORE')
fig.update_xaxes(type='category')