Change the order of "uptream servers" graphic items

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2022-02-14 16:36:51 -03:00
parent 555dc26a0e
commit adbd9ec3cc

View File

@@ -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]);