Plotly graph object misinterpreting strings and integers

Hi @Jason4,

If you set the xaxis_type='category' you’ll get the right plot.:

fig=go.Figure(data=[go.Bar(x=['1','2','Three'],y=['23','35','40'])])
fig.update_layout(xaxis_type='category')
1 Like