mirror of
https://github.com/pi-hole/web.git
synced 2025-12-27 05:56:22 +00:00
Only show query types for which the count is larger than zero.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user