diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index 703aa174..7f587f2e 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -306,9 +306,11 @@ function updateQueryTypesPie() { } Object.keys(iter).forEach(function (key) { - v.push(iter[key]); - c.push(THEME_COLORS[i++ % THEME_COLORS.length]); - k.push(key); + if (iter[key] > 0) { + v.push(iter[key]); + c.push(THEME_COLORS[i++ % THEME_COLORS.length]); + k.push(key); + } }); // Build a single dataset with the data to be pushed