From 848822e8cb348d6becea74fbec62458e9a2aa474 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Fri, 28 Mar 2014 15:35:03 -0700 Subject: [PATCH] Removed buggy below setting for legend, added word wrapping to legend, closes #1056 --- docs/kibana/panels/terms.asciidoc | 2 +- src/app/panels/terms/editor.html | 2 +- src/app/panels/terms/module.html | 27 ++++++--------------------- src/app/panels/terms/module.js | 2 +- 4 files changed, 9 insertions(+), 24 deletions(-) diff --git a/docs/kibana/panels/terms.asciidoc b/docs/kibana/panels/terms.asciidoc index 99e98c08553a4..d51fd2da7c72d 100644 --- a/docs/kibana/panels/terms.asciidoc +++ b/docs/kibana/panels/terms.asciidoc @@ -21,7 +21,7 @@ tilt:: In pie chart mode, tilt the chart back to appear as more of an oval shape lables:: In pie chart mode, draw labels in the pie slices arrangement:: In bar or pie mode, arrangement of the legend. horizontal or vertical chart:: table, bar or pie -counter_pos:: The location of the legend in respect to the chart, above or below. +counter_pos:: The location of the legend in respect to the chart, above or none. spyable:: Set spyable to false to disable the inspect button ==== Queries diff --git a/src/app/panels/terms/editor.html b/src/app/panels/terms/editor.html index ee849a66313a5..b21d9e1dac7f3 100644 --- a/src/app/panels/terms/editor.html +++ b/src/app/panels/terms/editor.html @@ -45,7 +45,7 @@
View Options
- +
diff --git a/src/app/panels/terms/module.html b/src/app/panels/terms/module.html index 3dff22e0c3a58..e1c02f67bca86 100644 --- a/src/app/panels/terms/module.html +++ b/src/app/panels/terms/module.html @@ -1,20 +1,23 @@
-
+
- +
{{term.label}}{{term.data[0][1]}} {{term.label}}{{term.data[0][1]}}
- {{term.label}} ({{term.data[0][1]}}) + {{term.label}} ({{term.data[0][1]}}) @@ -28,24 +31,6 @@
-
- - - - - -
{{term.label}}{{term.data[0][1]}}
- - - - {{term.label}} ({{term.data[0][1]}}) - - - -   | {{ panel.tstat }} of {{ panel.valuefield }} - - -
diff --git a/src/app/panels/terms/module.js b/src/app/panels/terms/module.js index f691e1097384e..d23d0dcc1509a 100644 --- a/src/app/panels/terms/module.js +++ b/src/app/panels/terms/module.js @@ -96,7 +96,7 @@ function (angular, app, _, $, kbn) { */ chart : 'bar', /** @scratch /panels/terms/5 - * counter_pos:: The location of the legend in respect to the chart, above or below. + * counter_pos:: The location of the legend in respect to the chart, above or none. */ counter_pos : 'above', /** @scratch /panels/terms/5