From a06c85e0bd2a3e5657b94a0767e5e56d06365c69 Mon Sep 17 00:00:00 2001 From: jsm-oxa Date: Wed, 12 Jun 2013 12:26:40 +0200 Subject: [PATCH 1/2] add yAxis percent scale --- panels/histogram/editor.html | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/panels/histogram/editor.html b/panels/histogram/editor.html index 53cb0c849fd8f..ce5fd919d0f4a 100644 --- a/panels/histogram/editor.html +++ b/panels/histogram/editor.html @@ -65,28 +65,33 @@
Chart Options
-
+
- +
-
+
-
- +
+ +
+
+
+
+
-
+
-
+
-
+
-
+
From fd729d3ea02b702e5b567f59f325069c77f5eb26 Mon Sep 17 00:00:00 2001 From: jsm-oxa Date: Wed, 12 Jun 2013 13:28:05 +0300 Subject: [PATCH 2/2] add yAxis percent scale --- panels/histogram/module.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panels/histogram/module.js b/panels/histogram/module.js index 8e3ee76c9757d..b2bb7d4c1d787 100644 --- a/panels/histogram/module.js +++ b/panels/histogram/module.js @@ -308,7 +308,7 @@ angular.module('kibana.histogram', []) yaxis: { show: scope.panel['y-axis'], min: 0, - max: scope.panel.percentage && scope.panel.stack ? 100 : null, + max: scope.panel.ypercent ? 100 : (scope.panel.percentage && scope.panel.stack ? 100 : null), color: "#c8c8c8" }, xaxis: { @@ -393,4 +393,4 @@ angular.module('kibana.histogram', []) }); } }; -}) \ No newline at end of file +})