From ea62d4aea330fc6cd547b17438755e0f7b571b33 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Wed, 11 Sep 2013 15:42:03 -0700 Subject: [PATCH 1/4] Added pointer to chart hovers --- panels/histogram/module.html | 10 +++++----- panels/pie/module.html | 4 ++-- panels/terms/module.html | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/panels/histogram/module.html b/panels/histogram/module.html index 5d76715a960..4ce6b6a2130 100644 --- a/panels/histogram/module.html +++ b/panels/histogram/module.html @@ -8,10 +8,10 @@ display:inline-block; height:10px; width:10px; - border-radius:5px; + border-radius:5px; } .histogram-legend-item { - display:inline-block; + display:inline-block; } .histogram-chart { position:relative; @@ -23,7 +23,7 @@
- Zoom Out | + Zoom Out | @@ -32,5 +32,5 @@ {{panel.value_field}} {{panel.mode}} per {{panel.interval}} | ({{hits}} hits)
-
- \ No newline at end of file +
+ \ No newline at end of file diff --git a/panels/pie/module.html b/panels/pie/module.html index a36cf2c92a4..f089586b603 100644 --- a/panels/pie/module.html +++ b/panels/pie/module.html @@ -8,9 +8,9 @@
-
+
{{query.label}} ({{query.data[0][1]}})
- \ No newline at end of file + \ No newline at end of file diff --git a/panels/terms/module.html b/panels/terms/module.html index 814729c2dbf..70b870ba58f 100644 --- a/panels/terms/module.html +++ b/panels/terms/module.html @@ -5,7 +5,7 @@
- +
@@ -21,11 +21,11 @@
-
+
-
{{term.label}}{{term.data[0][1]}}
+
@@ -39,7 +39,7 @@ -
{{term.label}}{{term.data[0][1]}}
+
@@ -48,11 +48,11 @@
Term Count Action
{{term.data[0][1]}} - +
- \ No newline at end of file + \ No newline at end of file From b63af822c75342a39362e4aef3693ed50cdebe44 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Wed, 11 Sep 2013 15:58:53 -0700 Subject: [PATCH 2/4] Cleaned up timepicker layout --- panels/timepicker/module.html | 43 +++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/panels/timepicker/module.html b/panels/timepicker/module.html index 2c89289a0f4..c327b426c70 100644 --- a/panels/timepicker/module.html +++ b/panels/timepicker/module.html @@ -1,36 +1,41 @@ -
-
-
+ + +
+
+
- +
-
+
- +
-
+
- - +
-
+
- +
-
+
@@ -38,7 +43,7 @@
-
+
@@ -56,18 +61,18 @@
- Relative | - Absolute | - Since - | - Auto-refresh + Relative | + Absolute | + Since + | + Auto-refresh every {{panel.refresh.interval}}s.
\ No newline at end of file From 14d525da34e80ed9523fdca87fa12bc63b98733b Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Wed, 11 Sep 2013 16:39:17 -0700 Subject: [PATCH 3/4] added JSONifying of objects --- js/filters.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/filters.js b/js/filters.js index 7f25a12f80c..c21fa0b93f5 100644 --- a/js/filters.js +++ b/js/filters.js @@ -29,7 +29,11 @@ angular.module('kibana.filters', []) }).filter('stringify', function() { return function(arr, start, end) { if(!_.isUndefined(arr)) { - return arr.toString(); + if(_.isObject(arr) && !_.isArray(arr)) { + return angular.toJson(arr); + } else { + return arr.toString(); + } } }; }).filter('noXml', function() { From 8b5ac5e56eaf23111116fb4544bf4ad8a679cfdc Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Wed, 11 Sep 2013 16:41:53 -0700 Subject: [PATCH 4/4] Show _source by default, sort by _score by default --- panels/table/module.html | 14 +++++++++----- panels/table/module.js | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/panels/table/module.html b/panels/table/module.html index 92f3bdce87d..b59af11d472 100644 --- a/panels/table/module.html +++ b/panels/table/module.html @@ -39,10 +39,12 @@
-
No columns configured. You may want to select some from the list on the left.
+ + + - + + - diff --git a/panels/table/module.js b/panels/table/module.js index 0b2f62b3cdf..bfac1a3ecf1 100644 --- a/panels/table/module.js +++ b/panels/table/module.js @@ -45,10 +45,10 @@ angular.module('kibana.table', []) size : 100, // Per page pages : 5, // Pages available offset : 0, - sort : ['@timestamp','desc'], + sort : ['_score','desc'], group : "default", style : {'font-size': '9pt'}, - overflow: 'height', + overflow: 'min-height', fields : [], highlight : [], sortable: true,
_source (select columns from the list to the left) @@ -58,7 +60,8 @@
{{event._source|stringify|tableTruncate:panel.trimFactor:1}}
@@ -70,9 +73,10 @@
{{key}} - - + + + +