mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-27 15:55:00 +00:00
refactor: update highlight model constant in leaderboard chart
This commit is contained in:
parent
571c1b47b5
commit
d5330ae2f3
1 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ The model also has to successfully apply all its changes to the source file with
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
var ctx = document.getElementById('editChart').getContext('2d');
|
var ctx = document.getElementById('editChart').getContext('2d');
|
||||||
const HAIKU_MODEL = '3.5 Haiku';
|
const HIGHTLIGHT_MODEL = 'no no no no';
|
||||||
var leaderboardData = {
|
var leaderboardData = {
|
||||||
labels: [],
|
labels: [],
|
||||||
datasets: [{
|
datasets: [{
|
||||||
|
@ -68,11 +68,11 @@ The model also has to successfully apply all its changes to the source file with
|
||||||
data: [],
|
data: [],
|
||||||
backgroundColor: function(context) {
|
backgroundColor: function(context) {
|
||||||
const label = context.chart.data.labels[context.dataIndex] || '';
|
const label = context.chart.data.labels[context.dataIndex] || '';
|
||||||
return (label && label.includes(HAIKU_MODEL)) ? 'rgba(255, 99, 132, 0.2)' : 'rgba(54, 162, 235, 0.2)';
|
return (label && label.includes(HIGHTLIGHT_MODEL)) ? 'rgba(255, 99, 132, 0.2)' : 'rgba(54, 162, 235, 0.2)';
|
||||||
},
|
},
|
||||||
borderColor: function(context) {
|
borderColor: function(context) {
|
||||||
const label = context.chart.data.labels[context.dataIndex] || '';
|
const label = context.chart.data.labels[context.dataIndex] || '';
|
||||||
return (label && label.includes(HAIKU_MODEL)) ? 'rgba(255, 99, 132, 1)' : 'rgba(54, 162, 235, 1)';
|
return (label && label.includes(HIGHTLIGHT_MODEL)) ? '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