mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
feat: add distinct color for Qwen2.5 bar in chart
This commit is contained in:
parent
3d7f1f39ce
commit
2a29d077ee
1 changed files with 10 additions and 2 deletions
|
@ -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
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue