From f2415a590da0962b5254e03eab3cb5a5a4bf609d Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 21 Apr 2017 22:28:23 +0200 Subject: [PATCH] Don't skip line if there are no queries, simply set its contribution to zero --- scripts/pi-hole/js/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index ade3c365..40ca16a2 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -208,11 +208,6 @@ function updateForwardedOverTime() { { if (!{}.hasOwnProperty.call(plotdata[j], key)) continue; var singlepoint = plotdata[j][key]; - if(singlepoint === 0) - { - // Don't plot this line - singlepoint = NaN; - } forwardDestinationChart.data.datasets[key].data.push(singlepoint/sum); }