mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
style: update Sonnet bar color to green in chart
This commit is contained in:
parent
2a29d077ee
commit
107dfcac65
1 changed files with 16 additions and 10 deletions
|
@ -23,16 +23,22 @@ 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: filteredData.map(row =>
|
backgroundColor: filteredData.map(row => {
|
||||||
row.model === 'Qwen2.5 Coder 32B Instruct'
|
if (row.model === 'Qwen2.5 Coder 32B Instruct') {
|
||||||
? 'rgba(255, 99, 132, 0.2)' // Pink color for Qwen
|
return 'rgba(255, 99, 132, 0.2)'; // Pink color for Qwen
|
||||||
: 'rgba(54, 162, 235, 0.2)' // Default blue
|
} else if (row.model === 'Sonnet (SOTA)') {
|
||||||
),
|
return 'rgba(75, 192, 192, 0.2)'; // Green color for Sonnet
|
||||||
borderColor: filteredData.map(row =>
|
}
|
||||||
row.model === 'Qwen2.5 Coder 32B Instruct'
|
return 'rgba(54, 162, 235, 0.2)'; // Default blue
|
||||||
? 'rgba(255, 99, 132, 1)' // Pink border for Qwen
|
}),
|
||||||
: 'rgba(54, 162, 235, 1)' // Default blue border
|
borderColor: filteredData.map(row => {
|
||||||
),
|
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
|
||||||
|
}),
|
||||||
borderWidth: 1
|
borderWidth: 1
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue