Просмотр исходного кода

modify the function so that does not show 0, when two or more lines are drawn.

yamakatu 12 лет назад
Родитель
Сommit
43b844fb79
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/app/panels/histogram/timeSeries.js

+ 3 - 1
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;
   };