mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-19 11:05: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 }},
|
||||
r: Math.sqrt({{ row.aider_lines }}) * 1.5,
|
||||
label: '{{ row.end_tag }}',
|
||||
percentage: {{ row.aider_percentage }}
|
||||
percentage: {{ row.aider_percentage }},
|
||||
lines: {{ row.aider_lines }}
|
||||
},
|
||||
{% endfor %}
|
||||
],
|
||||
|
@ -61,7 +62,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
tooltip: {
|
||||
callbacks: {
|
||||
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