diff --git a/panels/hits/editor.html b/panels/hits/editor.html
index b1549c4b9ba..9d7fa903269 100644
--- a/panels/hits/editor.html
+++ b/panels/hits/editor.html
@@ -1,36 +1,29 @@
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
Chart Options
-
-
-
-
-
-
-
Queries
diff --git a/panels/hits/module.html b/panels/hits/module.html
index 33bdc083c58..7a6df45f4fe 100644
--- a/panels/hits/module.html
+++ b/panels/hits/module.html
@@ -1,42 +1,42 @@
-
-
-
{{hits}}
-
+
-
-
- | {{query.label}} | {{query.data[0][1]}} |
+
+
+ | {{query.label}} | {{query.data[0][1]}} |
-
-
{{query.label}} ({{query.data[0][1]}})
+
+
{{query.label}} ({{query.data[0][1]}})
+
-
-
-
-
{{hits}}
+
+
+
-
-
- {{query.label}} | {{query.data[0][1]}} |
+
+
+ | {{query.label}} | {{query.data[0][1]}} |
-
-
{{query.label}} ({{query.data[0][1]}})
+
+
{{query.label}} ({{query.data[0][1]}})
+
+
+ {{query.label}} ({{query.hits}})
\ No newline at end of file
diff --git a/panels/hits/module.js b/panels/hits/module.js
index 64b2d5dc7c2..879beb309ab 100644
--- a/panels/hits/module.js
+++ b/panels/hits/module.js
@@ -98,7 +98,6 @@ angular.module('kibana.hits', [])
i++;
});
-
$scope.$emit('render');
if(_segment < $scope.panel.index.length-1)
$scope.get_data(_segment+1,query_id)
@@ -200,6 +199,10 @@ angular.module('kibana.hits', [])
colors: ['#86B22D','#BF6730','#1D7373','#BFB930','#BF3030','#77207D']
});
+ // Compensate for the height of the legend. Gross
+ elem.height(
+ (scope.panel.height || scope.row.height).replace('px','') - $("#"+scope.$id+"-legend").height())
+
// Work around for missing legend at initialization
if(!scope.$$phase)
scope.$apply()
diff --git a/panels/stringquery/module.js b/panels/stringquery/module.js
index dac83338e84..ca34045a83d 100644
--- a/panels/stringquery/module.js
+++ b/panels/stringquery/module.js
@@ -34,7 +34,7 @@ angular.module('kibana.stringquery', [])
$scope.panel.query = new Array($scope.panel.query)
$scope.panel.query.push("")
}
- }
+ }
$scope.set_multi = function(multi) {
$scope.panel.query = multi ?