From 9f87fd9487a544cb0f38bd29de186ecee9387ca9 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Sun, 18 Sep 2022 16:51:55 +0200 Subject: [PATCH] [Accumulated statistics] Updated js to fix colors after Chart.js upgrade --- assets/js/sections/accumulatedstatistics.js | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/assets/js/sections/accumulatedstatistics.js b/assets/js/sections/accumulatedstatistics.js index aced301e..bde44b2d 100644 --- a/assets/js/sections/accumulatedstatistics.js +++ b/assets/js/sections/accumulatedstatistics.js @@ -84,25 +84,28 @@ function accumulatePlot(form) { backgroundColor: 'rgba(54, 162, 235, 0.2)', borderColor: 'rgba(54, 162, 235, 1)', borderWidth: 2, + color: color }] }, options: { scales: { - yAxes: [{ + y: { ticks: { beginAtZero: true, - fontColor: color + color: color } - }], - xAxes: [{ + }, + x: { ticks: { - fontColor: color + color: color } - }] + } }, - legend: { - labels: { - fontColor: color + plugins: { + legend: { + labels: { + color: color + } } } }