mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
fix: preserve plus sign at end of line in chart labels
This commit is contained in:
parent
1ec6ba35e0
commit
f26ccfa3e9
1 changed files with 5 additions and 1 deletions
|
@ -96,7 +96,11 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
},
|
||||
callback: function(value, index) {
|
||||
const label = this.getLabelForValue(value);
|
||||
return label.split(" + ");
|
||||
if (label.includes(" + ")) {
|
||||
const parts = label.split(" + ");
|
||||
return [parts[0] + " +", parts[1]];
|
||||
}
|
||||
return label;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue