mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
feat: add linebreaks to x-axis labels using callback function
This commit is contained in:
parent
0378ea40e7
commit
1ec6ba35e0
1 changed files with 4 additions and 0 deletions
|
@ -93,6 +93,10 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
ticks: {
|
ticks: {
|
||||||
font: {
|
font: {
|
||||||
size: 16
|
size: 16
|
||||||
|
},
|
||||||
|
callback: function(value, index) {
|
||||||
|
const label = this.getLabelForValue(value);
|
||||||
|
return label.split(" + ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue