mirror of
https://github.com/pi-hole/web.git
synced 2026-04-23 18:29:43 +01:00
Change the order of "uptream servers" graphic items
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user