mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
fix: Update tooltip callback to display correct data
This commit is contained in:
parent
a7b108a0e9
commit
b38b92dbbc
1 changed files with 4 additions and 1 deletions
|
@ -44,7 +44,10 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
tooltip: {
|
||||
callbacks: {
|
||||
label: function(context) {
|
||||
return `${context.raw.label}: ${Math.round(context.raw.percentage)}% (${context.raw.lines} lines)`;
|
||||
var label = context.dataset.label || '';
|
||||
var value = context.parsed.y || 0;
|
||||
var lines = context.raw || 0;
|
||||
return `${label}: ${Math.round(value)}% (${lines} lines)`;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue