Update src/streamlit_app.py
Browse files- src/streamlit_app.py +11 -4
src/streamlit_app.py
CHANGED
|
@@ -234,11 +234,19 @@ def create_bar_chart(df, view_type):
|
|
| 234 |
)
|
| 235 |
max_score = df_fig["score"].max()
|
| 236 |
fig.update_layout(
|
| 237 |
-
|
| 238 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
title_text="",
|
| 240 |
font=dict(size=15),
|
| 241 |
-
xaxis_tickangle=-45,
|
| 242 |
bargap=0.1,
|
| 243 |
barmode="group",
|
| 244 |
height=600,
|
|
@@ -266,7 +274,6 @@ def create_bar_chart(df, view_type):
|
|
| 266 |
),
|
| 267 |
uniformtext_minsize=10,
|
| 268 |
uniformtext_mode="show",
|
| 269 |
-
yaxis_range=[0, max_score * 1.25],
|
| 270 |
)
|
| 271 |
|
| 272 |
# Remove the color legend from the chart.
|
|
|
|
| 234 |
)
|
| 235 |
max_score = df_fig["score"].max()
|
| 236 |
fig.update_layout(
|
| 237 |
+
xaxis=dict(
|
| 238 |
+
title=dict(
|
| 239 |
+
text="Model",
|
| 240 |
+
standoff=10,
|
| 241 |
+
),
|
| 242 |
+
tickangle=-45,
|
| 243 |
+
),
|
| 244 |
+
yaxis=dict(
|
| 245 |
+
title_text="Score (Lower is better)",
|
| 246 |
+
range=[0, max_score * 1.25]
|
| 247 |
+
),
|
| 248 |
title_text="",
|
| 249 |
font=dict(size=15),
|
|
|
|
| 250 |
bargap=0.1,
|
| 251 |
barmode="group",
|
| 252 |
height=600,
|
|
|
|
| 274 |
),
|
| 275 |
uniformtext_minsize=10,
|
| 276 |
uniformtext_mode="show",
|
|
|
|
| 277 |
)
|
| 278 |
|
| 279 |
# Remove the color legend from the chart.
|