Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Barchart ignoring text x-values

$
0
0

Hi,
Could I please ask someone to help me understand this one…

I have a dataframe like this:

image

I’m giving it to the bar chart like this:

fig = px.bar(df_percent, x="peoplecnt", y="Percentage", color='Wave', barmode='group',
             height=400)
fig.show()

But when it displays… the barchart is missing two bars… the ‘None’ and the ‘Over 5’

So, can anyone help me ? Just need to get all seven bars displayed??
Why would the barchart be ignoring the text values of peoplecnt??

Thanks in advance

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles