aider/docs
Paul Gauthier 753ea441ea aider: Change the graph to a horizontal bar graph.
# Aider chat conversation:

USER: make the graph a horizontal bar graph

ASSISTANT: ```diff
--- docs/leaderboard.md
+++ docs/leaderboard.md
@@ ... @@
 <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
       }]
     };

     {% for row in sorted %}
       leaderboardData.labels.push('{{ row.model }}');
       leaderboardData.datasets[0].data.push({{ row.second }});
     {% endfor %}

-    var leaderboardChart = new Chart(ctx, {
-      type: 'bar',
+    var leaderboardChart = new Chart(ctx, {
+      type: 'horizontalBar',
       data: leaderboardData,
       options: {
         scales: {
-          yAxes: [{
+          xAxes: [{
             scaleLabel: {
               display: true,
             },
             ticks: {
               beginAtZero: true
             }
           }]
         }
       }
     });
   });
 </script>
```
2024-05-04 10:22:54 -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: Change the graph to a horizontal bar graph. 2024-05-04 10:22:54 -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