Daniel Cerda Escobar
commited on
Commit
•
61ccf4c
1
Parent(s):
d063ffc
Plot graph
Browse files
app.py
CHANGED
@@ -205,7 +205,8 @@ with col2:
|
|
205 |
col1,col2,col3 = st.columns([1,4,1])
|
206 |
with col2:
|
207 |
chart_data = st.session_state["output_4"]
|
208 |
-
bar_plot = sns.barplot(x='count', y='category', data=chart_data)
|
|
|
209 |
st.pyplot(bar_plot.figure, use_container_width=True)
|
210 |
#st.bar_chart(chart_data[['category','count']], x='category', y='count', use_container_width=True)
|
211 |
|
|
|
205 |
col1,col2,col3 = st.columns([1,4,1])
|
206 |
with col2:
|
207 |
chart_data = st.session_state["output_4"]
|
208 |
+
bar_plot = sns.barplot(x='count', y='category', data=chart_data, hue='category', legend=False)
|
209 |
+
bar_plot.bar_label(bar_plot.containers[0], fontsize=10);
|
210 |
st.pyplot(bar_plot.figure, use_container_width=True)
|
211 |
#st.bar_chart(chart_data[['category','count']], x='category', y='count', use_container_width=True)
|
212 |
|