From 43b844fb79aa46fd0f1a7eee3dc4b5666f3b8684 Mon Sep 17 00:00:00 2001 From: yamakatu Date: Fri, 6 Dec 2013 15:31:21 +0900 Subject: [PATCH] modify the function so that does not show 0, when two or more lines are drawn. --- src/app/panels/histogram/timeSeries.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/panels/histogram/timeSeries.js b/src/app/panels/histogram/timeSeries.js index 9b7138adbe2..02f5f54e20f 100644 --- a/src/app/panels/histogram/timeSeries.js +++ b/src/app/panels/histogram/timeSeries.js @@ -222,7 +222,9 @@ function (_, Interval) { var next, expected_next, prev, expected_prev; // add the current time - result.push([ time, this._data[time] || 0 ]); + if(this._data[time]){ + result.push([ time, this._data[time]]); + } return result; };