From 8800dcb4dde2e9fb9ec406facb4873f66d3c40b9 Mon Sep 17 00:00:00 2001 From: Joshua Lochner Date: Wed, 15 Mar 2023 19:10:28 +0200 Subject: [PATCH] [demo] Set scores to 0 when editing classes --- assets/js/scripts.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/js/scripts.js b/assets/js/scripts.js index 8bac1d2aac1779..762d6f417cc8da 100644 --- a/assets/js/scripts.js +++ b/assets/js/scripts.js @@ -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(); })