Skip to content

Commit

Permalink
[demo] Set scores to 0 when editing classes
Browse files Browse the repository at this point in the history
  • Loading branch information
xenova committed Mar 15, 2023
1 parent 4fdbc27 commit 8800dcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ ZSIC_CLASSES.addEventListener('input', () => {
let chartToUpdate = CHARTS[ZSIC_OUTPUT_CANVAS.id];

chartToUpdate.data.labels = getZSICClasses();
chartToUpdate.data.datasets[0].data = new Array(chartToUpdate.data.labels.length).fill(0);
chartToUpdate.update();
})

Expand Down

0 comments on commit 8800dcb

Please sign in to comment.