lewtun HF Staff Codex commited on
Commit
776762a
·
1 Parent(s): 5204149

Remove progress chart legend and reclaim chart space

Browse files
Files changed (1) hide show
  1. site/progress.js +2 -2
site/progress.js CHANGED
@@ -21,14 +21,14 @@ async function drawProgress() {
21
  hovertemplate: `${baseline.name}<br>Win rate: %{y:.2f}%<extra></extra>`
22
  }))];
23
  await Plotly.newPlot("progress-chart", traces, {
24
- margin: {l: 60, r: 12, t: 30, b: 130},
25
  paper_bgcolor: "#ffffff", plot_bgcolor: "#ffffff",
26
  font: {family: "'Letter Gothic', monospace", size: 12, color: "#000000"},
27
  xaxis: {title: {text: "Evaluated revisions", standoff: 12},
28
  range: extent, gridcolor: "#eeeeee", zeroline: false, automargin: true},
29
  yaxis: {title: {text: "Win rate (%)", standoff: 10}, rangemode: "tozero",
30
  gridcolor: "#eeeeee", zerolinecolor: "#dddddd", automargin: true},
31
- legend: {orientation: "h", x: 0, y: -0.25, yanchor: "top", font: {size: 11}},
32
  annotations: data.baselines.map(baseline => ({
33
  text: baseline.name, x: 1, xref: "paper", y: baseline.score, yref: "y",
34
  xanchor: "right", yanchor: "bottom", yshift: 4, showarrow: false,
 
21
  hovertemplate: `${baseline.name}<br>Win rate: %{y:.2f}%<extra></extra>`
22
  }))];
23
  await Plotly.newPlot("progress-chart", traces, {
24
+ margin: {l: 60, r: 12, t: 30, b: 60},
25
  paper_bgcolor: "#ffffff", plot_bgcolor: "#ffffff",
26
  font: {family: "'Letter Gothic', monospace", size: 12, color: "#000000"},
27
  xaxis: {title: {text: "Evaluated revisions", standoff: 12},
28
  range: extent, gridcolor: "#eeeeee", zeroline: false, automargin: true},
29
  yaxis: {title: {text: "Win rate (%)", standoff: 10}, rangemode: "tozero",
30
  gridcolor: "#eeeeee", zerolinecolor: "#dddddd", automargin: true},
31
+ showlegend: false,
32
  annotations: data.baselines.map(baseline => ({
33
  text: baseline.name, x: 1, xref: "paper", y: baseline.score, yref: "y",
34
  xanchor: "right", yanchor: "bottom", yshift: 4, showarrow: false,