feat: add distinct color for Qwen2.5 bar in chart

This commit is contained in:
Paul Gauthier (aider) 2024-12-03 16:11:54 -08:00
parent 3d7f1f39ce
commit 2a29d077ee

View file

@ -23,8 +23,16 @@ document.addEventListener('DOMContentLoaded', function () {
datasets: [{ datasets: [{
label: 'Percent completed correctly', label: 'Percent completed correctly',
data: filteredData.map(row => row.pass_rate_2), data: filteredData.map(row => row.pass_rate_2),
backgroundColor: 'rgba(54, 162, 235, 0.2)', backgroundColor: filteredData.map(row =>
borderColor: 'rgba(54, 162, 235, 1)', row.model === 'Qwen2.5 Coder 32B Instruct'
? 'rgba(255, 99, 132, 0.2)' // Pink color for Qwen
: 'rgba(54, 162, 235, 0.2)' // Default blue
),
borderColor: filteredData.map(row =>
row.model === 'Qwen2.5 Coder 32B Instruct'
? 'rgba(255, 99, 132, 1)' // Pink border for Qwen
: 'rgba(54, 162, 235, 1)' // Default blue border
),
borderWidth: 1 borderWidth: 1
}] }]
}; };