From 5379d451846e91bccaa135b694a2d1e295554445 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 3 Dec 2024 16:30:49 -0800 Subject: [PATCH] fix: correct color mapping for Qwen and Sonnet models in chart --- aider/website/_includes/qwq-chart.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/aider/website/_includes/qwq-chart.js b/aider/website/_includes/qwq-chart.js index a1f7513dd..d411ea491 100644 --- a/aider/website/_includes/qwq-chart.js +++ b/aider/website/_includes/qwq-chart.js @@ -24,18 +24,18 @@ document.addEventListener('DOMContentLoaded', function () { label: 'Percent completed correctly', data: filteredData.map(row => row.pass_rate_2), backgroundColor: filteredData.map(row => { - if (row.model === 'Qwen2.5 Coder 32B Instruct' - || row.model === 'Sonnet (SOTA) - ) { + if (row.model === 'Qwen2.5 Coder 32B Instruct') { return 'rgba(255, 99, 132, 0.2)'; // Pink color for Qwen + } else if (row.model === 'Sonnet (SOTA)') { + return 'rgba(75, 192, 192, 0.2)'; // Green color for Sonnet } return 'rgba(54, 162, 235, 0.2)'; // Default blue }), borderColor: filteredData.map(row => { - if (row.model === 'Qwen2.5 Coder 32B Instruct' - || row.model === 'Sonnet (SOTA) - ) { + if (row.model === 'Qwen2.5 Coder 32B Instruct') { return 'rgba(255, 99, 132, 1)'; // Pink border for Qwen + } else if (row.model === 'Sonnet (SOTA)') { + return 'rgba(75, 192, 192, 1)'; // Green border for Sonnet } return 'rgba(54, 162, 235, 1)'; // Default blue border }),