Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -106,7 +106,7 @@ def create_bar_chart(df, category):
|
|
106 |
)
|
107 |
|
108 |
# Adjust the height of the chart based on the number of rows in the DataFrame
|
109 |
-
st.plotly_chart(fig, use_container_width=True, height=len(df) *
|
110 |
|
111 |
|
112 |
import plotly.graph_objs as go
|
@@ -151,7 +151,7 @@ def create_combined_chart(df, category):
|
|
151 |
)
|
152 |
|
153 |
# Display the figure in Streamlit
|
154 |
-
st.plotly_chart(fig, use_container_width=True, height=len(df) *
|
155 |
|
156 |
|
157 |
|
@@ -243,9 +243,11 @@ def main():
|
|
243 |
help="Click to download the CSV file",
|
244 |
)
|
245 |
|
|
|
246 |
# Full-width plot for the first category
|
247 |
create_combined_chart(df, score_columns[0])
|
248 |
-
|
|
|
249 |
# Next two plots in two columns
|
250 |
col1, col2 = st.columns(2)
|
251 |
with col1:
|
|
|
106 |
)
|
107 |
|
108 |
# Adjust the height of the chart based on the number of rows in the DataFrame
|
109 |
+
st.plotly_chart(fig, use_container_width=True, height=len(df) * 50)
|
110 |
|
111 |
|
112 |
import plotly.graph_objs as go
|
|
|
151 |
)
|
152 |
|
153 |
# Display the figure in Streamlit
|
154 |
+
st.plotly_chart(fig, use_container_width=True, height=len(df) * 50)
|
155 |
|
156 |
|
157 |
|
|
|
243 |
help="Click to download the CSV file",
|
244 |
)
|
245 |
|
246 |
+
# Horizontal barcharts
|
247 |
# Full-width plot for the first category
|
248 |
create_combined_chart(df, score_columns[0])
|
249 |
+
# Vertical barcharts
|
250 |
+
create_bar_chart(df, score_columns[0])
|
251 |
# Next two plots in two columns
|
252 |
col1, col2 = st.columns(2)
|
253 |
with col1:
|