title: how to plot 100% bar chart from a stacked chart with plotly?
body: <p>Hi I am trying to use plotly to create a 100% stacked bar chart in streamlit using plotly. I tried using relative but to no avail.</p>
  <pre><code>dfCategory = dfQuery.groupby(['l1_category_name','pricingPosition'])['pricingPosition'].count().reset_index(name=&quot;count&quot;)
  fig = px.bar(dfCategory, x=&quot;count&quot;, y=&quot;l1_category_name&quot;, color='pricingPosition', orientation='h',
           height=400)
  fig.update_layout(barmode='relative')
  st.plotly_chart(fig, use_container_width=True)
  </code></pre>
  <p>Any help would be greatly appreciated</p>