mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 03:35:00 +00:00
feat: add distinct color for 3.5 Haiku models in leaderboard chart
This commit is contained in:
parent
e6d4c3558b
commit
7d79408683
1 changed files with 8 additions and 2 deletions
|
@ -65,8 +65,14 @@ The model also has to successfully apply all its changes to the source file with
|
||||||
datasets: [{
|
datasets: [{
|
||||||
label: 'Percent completed correctly',
|
label: 'Percent completed correctly',
|
||||||
data: [],
|
data: [],
|
||||||
backgroundColor: 'rgba(54, 162, 235, 0.2)',
|
backgroundColor: function(context) {
|
||||||
borderColor: 'rgba(54, 162, 235, 1)',
|
const label = context.chart.data.labels[context.dataIndex];
|
||||||
|
return label.includes('3.5 Haiku') ? 'rgba(255, 99, 132, 0.2)' : 'rgba(54, 162, 235, 0.2)';
|
||||||
|
},
|
||||||
|
borderColor: function(context) {
|
||||||
|
const label = context.chart.data.labels[context.dataIndex];
|
||||||
|
return label.includes('3.5 Haiku') ? 'rgba(255, 99, 132, 1)' : 'rgba(54, 162, 235, 1)';
|
||||||
|
},
|
||||||
borderWidth: 1
|
borderWidth: 1
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue