From 088dd99ec1b6941228b4627c0addfdfda858b541 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 27 Feb 2025 14:15:23 -0800 Subject: [PATCH] refactor: Change cost chart to scatter plot with markers --- aider/website/_includes/leaderboard.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/aider/website/_includes/leaderboard.js b/aider/website/_includes/leaderboard.js index aa388bdda..7ee4e303b 100644 --- a/aider/website/_includes/leaderboard.js +++ b/aider/website/_includes/leaderboard.js @@ -26,14 +26,13 @@ document.addEventListener('DOMContentLoaded', function () { }, { label: 'Total Cost ($)', data: [], - type: 'line', + type: 'scatter', yAxisID: 'y1', - fill: false, - borderColor: 'rgba(153, 102, 255, 1)', - borderWidth: 2, - pointBackgroundColor: 'rgba(153, 102, 255, 1)', - pointBorderColor: '#fff', - pointRadius: 4 + backgroundColor: 'rgba(153, 102, 255, 1)', + borderColor: '#fff', + borderWidth: 1, + pointRadius: 5, + pointHoverRadius: 7 }] }; @@ -129,9 +128,10 @@ document.addEventListener('DOMContentLoaded', function () { }, { text: 'Total Cost ($)', - fillStyle: 'rgba(0, 0, 0, 0)', - strokeStyle: 'rgba(153, 102, 255, 1)', - lineWidth: 2 + fillStyle: 'rgba(153, 102, 255, 1)', + strokeStyle: '#fff', + lineWidth: 1, + pointStyle: 'circle' } ]; }