From 8743a4263fec250af1dca4c32e6a36da1cb1c442 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Thu, 23 May 2013 21:47:14 -0700 Subject: [PATCH] Fixed unreliable trending numbers before query completes --- panels/trends/module.html | 2 +- panels/trends/module.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/panels/trends/module.html b/panels/trends/module.html index 94f09c42411..3cd8765d3eb 100644 --- a/panels/trends/module.html +++ b/panels/trends/module.html @@ -1,6 +1,6 @@ -
+
{{query.percent}}% diff --git a/panels/trends/module.js b/panels/trends/module.js index eb05da0b942..3685901fd86 100644 --- a/panels/trends/module.js +++ b/panels/trends/module.js @@ -164,7 +164,8 @@ angular.module('kibana.trends', []) $scope.$emit('render'); if(_segment < $scope.index.length-1) $scope.get_data(_segment+1,query_id) - + else + $scope.trends = $scope.data } }); }