mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 10:45:00 +00:00
feat: Reverse order of bars and legend in chart
This commit is contained in:
parent
6c946006e8
commit
7c8f0ea7b6
1 changed files with 5 additions and 1 deletions
|
@ -80,6 +80,10 @@ top coding models, as compared to their previous "solo" scores (striped bars).
|
||||||
borderColors.push(borderColorMapping["{{ item.model }}"]);
|
borderColors.push(borderColorMapping["{{ item.model }}"]);
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
labels.reverse();
|
||||||
|
data.reverse();
|
||||||
|
backgroundColors.reverse();
|
||||||
|
borderColors.reverse();
|
||||||
new Chart(ctx, {
|
new Chart(ctx, {
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
data: {
|
data: {
|
||||||
|
@ -160,7 +164,7 @@ top coding models, as compared to their previous "solo" scores (striped bars).
|
||||||
"gpt-4o": "rgba(54, 162, 235, 0.2)",
|
"gpt-4o": "rgba(54, 162, 235, 0.2)",
|
||||||
"o1-mini": "rgba(255, 99, 132, 0.2)"
|
"o1-mini": "rgba(255, 99, 132, 0.2)"
|
||||||
};
|
};
|
||||||
return Object.keys(colorMapping).map(function(key) {
|
return Object.keys(colorMapping).reverse().map(function(key) {
|
||||||
return {
|
return {
|
||||||
text: key,
|
text: key,
|
||||||
fillStyle: colorMapping[key],
|
fillStyle: colorMapping[key],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue