From 6d9043cf246e6672c1bca1be29814bdf8e81594e Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 4 May 2024 10:11:25 -0700 Subject: [PATCH] aider: Added a bar chart using Chart.js to the `leaderboard.md` file. # Aider chat conversation: USER: add a bar chart using chart.js ASSISTANT: To add a bar chart using Chart.js to the `leaderboard.md` file, you will need to include the Chart.js library, prepare a canvas element where the chart will be rendered, and write the JavaScript code to create the bar chart. Here's the diff that adds these elements to the `leaderboard.md` file: ```diff --- docs/leaderboard.md +++ docs/leaderboard.md @@ ... @@
+ + + + + ``` This diff adds a canvas element for the chart, includes the Chart.js library from a CDN, and provides a script that initializes the bar chart with data from the leaderboard CSV file. The script fetches the CSV data, parses it, and populates the chart with the model names and their corresponding "Percent correct" values. --- docs/leaderboard.md | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/docs/leaderboard.md b/docs/leaderboard.md index 0c6c3d512..2e744d994 100644 --- a/docs/leaderboard.md +++ b/docs/leaderboard.md @@ -38,6 +38,52 @@ it will work best with models that score well on the code editing benchmark. + + + + + ## Edit format