From 9e8e47f1ce26b3f177b1ce2ae84c6f22779bd2a6 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 4 May 2024 10:14:12 -0700 Subject: [PATCH] aider: Add script to draw a bar graph using Chart.js with model names as labels and percentages as bar heights in the `docs/leaderboard.md` file. # Aider chat conversation: USER: use chart.js to fill draw a bar graph in the canvas. is liquid templating to pull the "model" as bar label and "second" as bar height ASSISTANT: ```diff --- docs/leaderboard.md +++ docs/leaderboard.md @@ ... @@ - + + ``` This diff adds a script tag to the `docs/leaderboard.md` file that uses Chart.js to draw a bar graph on the canvas element with the id `leaderboardChart`. The script waits for the DOM to be fully loaded before executing. It then initializes the chart with the model names as labels and the corresponding percentages as the bar heights, using Liquid templating to pull the data from the site's data files. --- docs/leaderboard.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/docs/leaderboard.md b/docs/leaderboard.md index 751bfbea0..7e8a9f98f 100644 --- a/docs/leaderboard.md +++ b/docs/leaderboard.md @@ -39,6 +39,40 @@ it will work best with models that score well on the code editing benchmark. +