mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 02:34:59 +00:00
Change the y-axis to show lines of aider code instead of percentage
This commit is contained in:
parent
15dea19424
commit
994e9a1475
1 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
{% for row in site.data.blame %}
|
{% for row in site.data.blame %}
|
||||||
{
|
{
|
||||||
x: '{{ row.end_date }}',
|
x: '{{ row.end_date }}',
|
||||||
y: {{ row.aider_percentage }},
|
y: {{ row.aider_lines }},
|
||||||
label: '{{ row.end_tag }}'
|
label: '{{ row.end_tag }}'
|
||||||
},
|
},
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -52,7 +52,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
y: {
|
y: {
|
||||||
title: {
|
title: {
|
||||||
display: true,
|
display: true,
|
||||||
text: 'Aider Contribution (% of code)'
|
text: 'Aider Contribution (lines of code)'
|
||||||
},
|
},
|
||||||
beginAtZero: true,
|
beginAtZero: true,
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
tooltip: {
|
tooltip: {
|
||||||
callbacks: {
|
callbacks: {
|
||||||
label: function(context) {
|
label: function(context) {
|
||||||
return `${context.raw.label}: ${Math.round(context.raw.y)}%`;
|
return `${context.raw.label}: ${context.raw.y} lines`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue