mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
Round the percentage displayed in the tooltip to a whole number
This commit is contained in:
parent
0e6ebfb8a0
commit
1db6962285
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
tooltip: {
|
||||
callbacks: {
|
||||
label: function(context) {
|
||||
return `${context.raw.label}: ${context.raw.y.toFixed(2)}%`;
|
||||
return `${context.raw.label}: ${Math.round(context.raw.y)}%`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue