Ahnj-Stability commited on
Commit
9aade7b
·
1 Parent(s): 1424b26

fix bug: en version metric chart size

Browse files
Files changed (1) hide show
  1. tabs/leaderboard_v1_en.py +4 -2
tabs/leaderboard_v1_en.py CHANGED
@@ -3559,7 +3559,8 @@ def create_empty_heatmap(message):
3559
  paper_bgcolor="#01091A",
3560
  plot_bgcolor="rgba(245, 246, 247, 0.02)",
3561
  height=520,
3562
- width=1450,
 
3563
  margin=dict(t=80, b=80, l=80, r=160),
3564
  title=dict(
3565
  text="<b>Comprehensive Performance Heatmap</b>",
@@ -3685,7 +3686,8 @@ def create_level_metric_chart(df, level, selected_models=None, max_models=5):
3685
  paper_bgcolor="#01091A",
3686
  plot_bgcolor="rgba(245, 246, 247, 0.02)",
3687
  height=plot_height,
3688
- width=1450,
 
3689
  margin=dict(t=90, b=80, l=220, r=160),
3690
  legend=dict(
3691
  orientation="h",
 
3559
  paper_bgcolor="#01091A",
3560
  plot_bgcolor="rgba(245, 246, 247, 0.02)",
3561
  height=520,
3562
+ # width=1450,
3563
+ autosize=True,
3564
  margin=dict(t=80, b=80, l=80, r=160),
3565
  title=dict(
3566
  text="<b>Comprehensive Performance Heatmap</b>",
 
3686
  paper_bgcolor="#01091A",
3687
  plot_bgcolor="rgba(245, 246, 247, 0.02)",
3688
  height=plot_height,
3689
+ # width=1450,
3690
+ autosize=True,
3691
  margin=dict(t=90, b=80, l=220, r=160),
3692
  legend=dict(
3693
  orientation="h",