mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
feat: Sort chart data by pass rate in descending order
This commit is contained in:
parent
ff8c1aace9
commit
8d0ba40d67
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,9 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
});
|
||||
{% endfor %}
|
||||
|
||||
// Sort data by pass_rate_2 in descending order
|
||||
allData.sort((a, b) => b.pass_rate_2 - a.pass_rate_2);
|
||||
|
||||
allData.forEach(function(row) {
|
||||
chartData.labels.push(row.model);
|
||||
chartData.datasets[0].data.push(row.pass_rate_2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue