aider/docs
Paul Gauthier 98c8395d48 aider: Added Chart.js library to the docs/leaderboard.md file.
# Aider chat conversation:

USER: ReferenceError: Can't find variable: Chart

ASSISTANT: The error message "ReferenceError: Can't find variable: Chart" suggests that the Chart.js library is not being loaded before the script that is trying to use it. To fix this, we need to ensure that the Chart.js library is included in the HTML document before the script that initializes the chart.

Here is the diff to add the Chart.js library to the `docs/leaderboard.md` file:

```diff
--- docs/leaderboard.md
+++ docs/leaderboard.md
@@ ... @@
 <canvas id="leaderboardChart" width="800" height="450"></canvas>
+<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
 <script>
   document.addEventListener('DOMContentLoaded', function () {
     var ctx = document.getElementById('leaderboardChart').getContext('2d');
     var leaderboardData = {
       labels: [],
       datasets: [{
         label: 'Percent correct',
         data: [],
         backgroundColor: 'rgba(54, 162, 235, 0.2)',
         borderColor: 'rgba(54, 162, 235, 1)',
         borderWidth: 1
       }]
     };
@@ ... @@
```

This diff adds the Chart.js library from a CDN before the script tag that contains the chart initialization code. This should resolve the `ReferenceError` by ensuring that the `Chart` variable is defined when the script runs.
2024-05-04 10:16:08 -07:00
..
benchmarks-0125.md added images 2024-02-19 17:46:30 -08:00
benchmarks-1106.md added images 2024-02-19 17:46:30 -08:00
benchmarks-speed-1106.md canonical_url 2024-02-23 08:54:38 -08:00
benchmarks.md added images 2024-02-19 17:46:30 -08:00
commands.md Added /web to commands doc 2024-02-08 14:39:18 -08:00
conventions.md instructions->conventions 2024-02-24 07:16:29 -08:00
ctags.md layout 2024-02-19 14:56:35 -08:00
docker.md Added libportaudio2 to the docker container 2023-10-18 13:38:41 -07:00
faq.md copy 2024-04-29 20:42:44 -07:00
install.md copy 2024-05-02 08:31:13 -07:00
leaderboard.md aider: Added Chart.js library to the docs/leaderboard.md file. 2024-05-04 10:16:08 -07:00
llms.md copy 2024-05-03 17:14:56 -07:00
repomap.md added images 2024-02-19 17:46:30 -08:00
unified-diffs.md copy 2024-02-24 14:51:52 -08:00
voice.md copy 2023-09-25 12:25:22 -07:00