mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 23:05:00 +00:00
![]() # 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> ``` |
||
---|---|---|
.. | ||
benchmarks-0125.md | ||
benchmarks-1106.md | ||
benchmarks-speed-1106.md | ||
benchmarks.md | ||
commands.md | ||
conventions.md | ||
ctags.md | ||
docker.md | ||
faq.md | ||
install.md | ||
leaderboard.md | ||
llms.md | ||
repomap.md | ||
unified-diffs.md | ||
voice.md |