mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
refactor: Improve chart label handling by splitting model names on newline
This commit is contained in:
parent
3d7440c673
commit
a3dde4599a
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, "hi"]);
|
||||
// Split the model name on \n to create array of lines
|
||||
chartData.labels.push(row.model.split('\\n'));
|
||||
chartData.datasets[0].data.push(row.pass_rate_2);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue