Update src/streamlit_app.py
Browse files- src/streamlit_app.py +6 -3
src/streamlit_app.py
CHANGED
|
@@ -185,6 +185,7 @@ def create_bar_chart(df, view_type):
|
|
| 185 |
orientation="v",
|
| 186 |
)
|
| 187 |
max_score = df_fig["score"].max()
|
|
|
|
| 188 |
fig.update_layout(
|
| 189 |
xaxis=dict(
|
| 190 |
title=dict(
|
|
@@ -195,7 +196,7 @@ def create_bar_chart(df, view_type):
|
|
| 195 |
),
|
| 196 |
yaxis=dict(
|
| 197 |
title_text="Score (Lower is better)",
|
| 198 |
-
range=[
|
| 199 |
),
|
| 200 |
title_text="",
|
| 201 |
font=dict(size=15),
|
|
@@ -245,6 +246,7 @@ def create_bar_chart(df, view_type):
|
|
| 245 |
orientation="v",
|
| 246 |
)
|
| 247 |
max_score = df_fig["score"].max()
|
|
|
|
| 248 |
fig.update_layout(
|
| 249 |
xaxis=dict(
|
| 250 |
title=dict(
|
|
@@ -255,7 +257,7 @@ def create_bar_chart(df, view_type):
|
|
| 255 |
),
|
| 256 |
yaxis=dict(
|
| 257 |
title_text="Score (Lower is better)",
|
| 258 |
-
range=[
|
| 259 |
),
|
| 260 |
title_text="",
|
| 261 |
font=dict(size=15),
|
|
@@ -325,6 +327,7 @@ def create_bar_chart(df, view_type):
|
|
| 325 |
orientation="v",
|
| 326 |
)
|
| 327 |
max_score = df_fig["score"].max()
|
|
|
|
| 328 |
fig.update_layout(
|
| 329 |
xaxis=dict(
|
| 330 |
title=dict(
|
|
@@ -335,7 +338,7 @@ def create_bar_chart(df, view_type):
|
|
| 335 |
),
|
| 336 |
yaxis=dict(
|
| 337 |
title_text="Score (Lower is better)",
|
| 338 |
-
range=[
|
| 339 |
),
|
| 340 |
title_text="",
|
| 341 |
font=dict(size=15),
|
|
|
|
| 185 |
orientation="v",
|
| 186 |
)
|
| 187 |
max_score = df_fig["score"].max()
|
| 188 |
+
min_score = df_fig["score"].min()
|
| 189 |
fig.update_layout(
|
| 190 |
xaxis=dict(
|
| 191 |
title=dict(
|
|
|
|
| 196 |
),
|
| 197 |
yaxis=dict(
|
| 198 |
title_text="Score (Lower is better)",
|
| 199 |
+
range=[min_score * 1.25, max_score * 1.25]
|
| 200 |
),
|
| 201 |
title_text="",
|
| 202 |
font=dict(size=15),
|
|
|
|
| 246 |
orientation="v",
|
| 247 |
)
|
| 248 |
max_score = df_fig["score"].max()
|
| 249 |
+
min_score = df_fig["score"].min()
|
| 250 |
fig.update_layout(
|
| 251 |
xaxis=dict(
|
| 252 |
title=dict(
|
|
|
|
| 257 |
),
|
| 258 |
yaxis=dict(
|
| 259 |
title_text="Score (Lower is better)",
|
| 260 |
+
range=[min_score * 1.25, max_score * 1.25]
|
| 261 |
),
|
| 262 |
title_text="",
|
| 263 |
font=dict(size=15),
|
|
|
|
| 327 |
orientation="v",
|
| 328 |
)
|
| 329 |
max_score = df_fig["score"].max()
|
| 330 |
+
min_score = df_fig["score"].min()
|
| 331 |
fig.update_layout(
|
| 332 |
xaxis=dict(
|
| 333 |
title=dict(
|
|
|
|
| 338 |
),
|
| 339 |
yaxis=dict(
|
| 340 |
title_text="Score (Lower is better)",
|
| 341 |
+
range=[min_score * 1.25, max_score * 1.25]
|
| 342 |
),
|
| 343 |
title_text="",
|
| 344 |
font=dict(size=15),
|