Merge pull request #1475 from pi-hole/new/more_query_types

Only show query types for which the count is larger than zero
This commit is contained in:
DL6ER
2020-06-28 23:04:34 +02:00
committed by GitHub
+5 -3
View File
@@ -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