Don't skip line if there are no queries, simply set its contribution to zero

This commit is contained in:
DL6ER
2017-04-21 22:28:23 +02:00
parent 2d3452f04d
commit f2415a590d

View File

@@ -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);
}