mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 10:45:00 +00:00
Fix the tooltip to correctly show the percentage and lines of code, and round the percentage to a whole number.
This commit is contained in:
parent
931e158edf
commit
a38a362bd5
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
tooltip: {
|
||||
callbacks: {
|
||||
label: function(context) {
|
||||
return `${context.raw.label}: ${context.raw.percentage.toFixed(2)}% (${context.raw.y} lines)`;
|
||||
return `${context.raw.label}: ${Math.round(context.raw.percentage)}% (${context.raw.r} lines)`;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue