mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-19 02:55:00 +00:00
Fix tooltip to display correct integer lines of code
This commit is contained in:
parent
a38a362bd5
commit
68ccbdfa3a
1 changed files with 3 additions and 2 deletions
|
@ -15,7 +15,8 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
y: {{ row.aider_percentage }},
|
y: {{ row.aider_percentage }},
|
||||||
r: Math.sqrt({{ row.aider_lines }}) * 1.5,
|
r: Math.sqrt({{ row.aider_lines }}) * 1.5,
|
||||||
label: '{{ row.end_tag }}',
|
label: '{{ row.end_tag }}',
|
||||||
percentage: {{ row.aider_percentage }}
|
percentage: {{ row.aider_percentage }},
|
||||||
|
lines: {{ row.aider_lines }}
|
||||||
},
|
},
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
],
|
],
|
||||||
|
@ -61,7 +62,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
tooltip: {
|
tooltip: {
|
||||||
callbacks: {
|
callbacks: {
|
||||||
label: function(context) {
|
label: function(context) {
|
||||||
return `${context.raw.label}: ${Math.round(context.raw.percentage)}% (${context.raw.r} lines)`;
|
return `${context.raw.label}: ${Math.round(context.raw.percentage)}% (${context.raw.lines} lines)`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue