Only show query types for which the count is larger than zero.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2020-06-28 21:41:39 +02:00
parent 59bd4de97e
commit aeba7c958d

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