Spaces:
Runtime error
Runtime error
Changed % charts to Pie chart view
Browse files119 unmodified lines120121122123124125126127128129130131132133124125126127134135136137138129139140141142143144145119 unmodified lines ) st.plotly_chart(fig_count, use_container_width=True) # with col2: # # Bar chart of percentages # fig_percent = px.bar( # x=value_percentages.index, # y=value_percentages.values, # title=f"Percentage Distribution of {col_name}", # labels={'x': col_name, 'y': 'Percentage (%)'} # ) # st.plotly_chart(fig_percent, use_container_width=True)
with col2: # Bar chart of percentages fig_percent = px.bar( x=value_percentages.index, y=value_percentages.values, # Pie chart of percentages fig_percent = px.pie( names=value_percentages.index, values=value_percentages.values, title=f"Percentage Distribution of {col_name}", labels={'x': col_name, 'y': 'Percentage (%)'} hole=0.3 # Optional: to make it a donut chart ) st.plotly_chart(fig_percent, use_container_width=True)
# Display frequency table freq_df = pd.DataFrame({app.py+16-5