From d38a821466fa119562a3c0bf8ca0e9395904d8c1 Mon Sep 17 00:00:00 2001 From: liesBollens Date: Thu, 30 Nov 2023 13:48:11 +0100 Subject: [PATCH] update --- layouts/shortcodes/chart_1.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/chart_1.html b/layouts/shortcodes/chart_1.html index d4453ad..6af0508 100644 --- a/layouts/shortcodes/chart_1.html +++ b/layouts/shortcodes/chart_1.html @@ -72,6 +72,8 @@

(e) => {return e[1]['per_subject']} ); + console.log(withinResults); + var ctx = document.getElementById('{{ $id }}').getContext('2d'); var options = { @@ -133,7 +135,7 @@

padding: 10, itemRadius: 0, data: withinResults.slice(10) - }] + },] }; var ctx = document.getElementById("canvas").getContext("2d"); new Chart(ctx, {