From adbd9ec3cca4e6f38f7f4cdb4d97a5bb02282d2d Mon Sep 17 00:00:00 2001 From: RD WebDesign Date: Mon, 14 Feb 2022 16:36:51 -0300 Subject: [PATCH] Change the order of "uptream servers" graphic items Signed-off-by: RD WebDesign --- scripts/pi-hole/js/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index d7cce8e2..9849d7aa 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -538,6 +538,9 @@ function updateForwardDestinationsPie() { values.push([key, value, THEME_COLORS[i++ % THEME_COLORS.length]]); }); + // Move the "other" element to the end of the array + values.push(values.splice(values.indexOf("other"), 1)[0]); + // Split data into individual arrays for the graphs values.forEach(function (value) { k.push(value[0]);