From 1ec6ba35e0ede73188a0c52f0684667e21e82a80 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 4 Dec 2024 06:25:32 -0800 Subject: [PATCH] feat: add linebreaks to x-axis labels using callback function --- aider/website/_includes/qwq-chart.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aider/website/_includes/qwq-chart.js b/aider/website/_includes/qwq-chart.js index dbe707916..37fbdcdc3 100644 --- a/aider/website/_includes/qwq-chart.js +++ b/aider/website/_includes/qwq-chart.js @@ -93,6 +93,10 @@ document.addEventListener('DOMContentLoaded', function () { ticks: { font: { size: 16 + }, + callback: function(value, index) { + const label = this.getLabelForValue(value); + return label.split(" + "); } } }