From d4746aa799fbbf5ad6110d9bb94e239c3051a412 Mon Sep 17 00:00:00 2001 From: Timo Boer Date: Mon, 24 Jul 2023 14:59:32 +0200 Subject: [PATCH] added colors for line graphs. --- .../Nottingham/models_html5/adaptiveContent.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/xerte/parent_templates/Nottingham/models_html5/adaptiveContent.html b/modules/xerte/parent_templates/Nottingham/models_html5/adaptiveContent.html index 4df4c9940..cb8d946bb 100644 --- a/modules/xerte/parent_templates/Nottingham/models_html5/adaptiveContent.html +++ b/modules/xerte/parent_templates/Nottingham/models_html5/adaptiveContent.html @@ -615,6 +615,7 @@ secondHandler ) { var url; + debugger var q = {} if (type != "grouping" && type != "opinionclasses") { url = getUrl(xerteurl, xertelo, xertelabel, opinionClass); @@ -677,6 +678,8 @@ var date = moment(endDate).add(1, "days").toISOString(); q["until"] = date; } +//todo check if current or all users + // if set add current users to q /* queryStatements( @@ -2602,6 +2605,8 @@ { type: "line", label: "data", + backgroundColor: barColors, + borderColor: barColors, data: Object.values(labels), yID: "id1", }, @@ -2722,6 +2727,8 @@ type: "line", label: "data", data: dataSet, + borderColor: barColors, + backgroundColor: barColors, }, ], };