From a56e24304d5508fa04feea8731205d01fffee702 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Thu, 5 Jan 2023 08:36:29 +0100 Subject: [PATCH] [QSO Stats Year] Reversed array to that graph shows from oldest to newest year --- assets/js/sections/statistics.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/js/sections/statistics.js b/assets/js/sections/statistics.js index b3612dbc..8ffc5b7f 100644 --- a/assets/js/sections/statistics.js +++ b/assets/js/sections/statistics.js @@ -104,6 +104,9 @@ function totalQsosPerYear() { labels.push(this.year); dataQso.push(this.total); }); + + labels.reverse(); + dataQso.reverse(); var ctx = document.getElementById("yearChart").getContext('2d'); var myChart = new Chart(ctx, {