TimWindecker commited on
Commit
929d67e
·
verified ·
1 Parent(s): cbf4788

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +12 -5
src/streamlit_app.py CHANGED
@@ -174,11 +174,19 @@ def create_bar_chart(df, view_type):
174
  )
175
  max_score = df_fig["score"].max()
176
  fig.update_layout(
177
- xaxis_title_text="Model",
178
- yaxis_title_text="Score (Lower is better)",
 
 
 
 
 
 
 
 
 
179
  title_text="",
180
  font=dict(size=15),
181
- xaxis_tickangle=-45,
182
  bargap=0.2,
183
  height=600,
184
  showlegend=False,
@@ -189,7 +197,6 @@ def create_bar_chart(df, view_type):
189
  t=70, # Top
190
  pad=0 # Padding
191
  ),
192
- yaxis_range=[0, max_score * 1.25],
193
  )
194
 
195
  # Remove the color legend from the chart.
@@ -237,7 +244,7 @@ def create_bar_chart(df, view_type):
237
  xaxis=dict(
238
  title=dict(
239
  text="Model",
240
- standoff=10,
241
  ),
242
  tickangle=-45,
243
  ),
 
174
  )
175
  max_score = df_fig["score"].max()
176
  fig.update_layout(
177
+ xaxis=dict(
178
+ title=dict(
179
+ text="Model",
180
+ standoff=15,
181
+ ),
182
+ tickangle=-45,
183
+ ),
184
+ yaxis=dict(
185
+ title_text="Score (Lower is better)",
186
+ range=[0, max_score * 1.25]
187
+ ),
188
  title_text="",
189
  font=dict(size=15),
 
190
  bargap=0.2,
191
  height=600,
192
  showlegend=False,
 
197
  t=70, # Top
198
  pad=0 # Padding
199
  ),
 
200
  )
201
 
202
  # Remove the color legend from the chart.
 
244
  xaxis=dict(
245
  title=dict(
246
  text="Model",
247
+ standoff=15,
248
  ),
249
  tickangle=-45,
250
  ),