From 58b4968cfc5a1fc80874c11fd62dedf838929339 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Sun, 18 Sep 2022 16:53:45 +0200 Subject: [PATCH] [Days with QSOs] Updated js to fix colors after Chart.js upgrade --- assets/js/sections/dayswithqso.js | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/assets/js/sections/dayswithqso.js b/assets/js/sections/dayswithqso.js index 27426356..d0c890a3 100644 --- a/assets/js/sections/dayswithqso.js +++ b/assets/js/sections/dayswithqso.js @@ -19,26 +19,29 @@ $.ajax({ data: dataDxcc, backgroundColor: 'rgba(54, 162, 235, 0.2)', borderColor: 'rgba(54, 162, 235, 1)', - borderWidth: 2 + 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 + } } } }