mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
fix: Handle line breaks in x-axis labels for chart rendering
This commit is contained in:
parent
ced4f9f0d9
commit
7d1379fe9f
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,8 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
{% endfor %}
|
||||
|
||||
allData.forEach(function(row) {
|
||||
chartData.labels.push(row.model);
|
||||
// Split model name on \n and join with actual line breaks
|
||||
chartData.labels.push(row.model.split('\\n').join('\n'));
|
||||
chartData.datasets[0].data.push(row.pass_rate_2);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue