From 5d75ab036772701debf2a641160de9b4ea4cfb30 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 13 Mar 2017 13:12:21 +0100 Subject: [PATCH] Fix labels --- scripts/pi-hole/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index f03a3e7a..271fb4f7 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -137,11 +137,11 @@ function updateForwardedOverTime() { forwardDestinationChart.data.datasets[0].backgroundColor = colors.shift(); forwardDestinationChart.data.datasets[0].pointRadius = 0; - forwardDestinationChart.data.datasets[0].label = labels.shift(); + forwardDestinationChart.data.datasets[0].label = labels[0]; for (i = 1; i < plotdata[0].length; i++) { - forwardDestinationChart.data.datasets.push({data: [], backgroundColor: colors.shift(), pointRadius: 0, label: labels}); + forwardDestinationChart.data.datasets.push({data: [], backgroundColor: colors.shift(), pointRadius: 0, label: labels[i]}); } // Add data for each dataset that is available