mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
feat: Show percentage numbers on top of bars without decimals
This commit is contained in:
parent
9f5d5ffe89
commit
200427e3f1
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
ctx.fillStyle = '#000000';
|
||||
ctx.textAlign = 'center';
|
||||
ctx.textBaseline = 'bottom';
|
||||
ctx.fillText(data.toFixed(1) + '%', bar.x, bar.y - 5);
|
||||
ctx.fillText(Math.round(data) + '%', bar.x, bar.y - 5);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue