mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
updating legendPosition to read values from config
This commit is contained in:
parent
aa69744f67
commit
6aa3476a5e
5 changed files with 6 additions and 2 deletions
|
@ -30,6 +30,7 @@ export default function HistogramVisType(Private) {
|
|||
setYExtents: false,
|
||||
yAxis: {}
|
||||
},
|
||||
legendPositions: ['left', 'right', 'top', 'bottom'],
|
||||
scales: ['linear', 'log', 'square root'],
|
||||
modes: ['stacked', 'overlap', 'percentage', 'wiggle', 'silhouette'],
|
||||
editor: areaTemplate
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<div>
|
||||
<div class="vis-option-item" ng-if="vis.params.addLegend">
|
||||
<div class="vis-option-item">
|
||||
<label>
|
||||
Legend Position
|
||||
<select
|
||||
class="form-control"
|
||||
ng-model="vis.params.legendPosition"
|
||||
ng-options="position for position in ['top', 'left', 'right', 'bottom']"
|
||||
ng-options="position for position in vis.type.params.legendPositions"
|
||||
>
|
||||
</select>
|
||||
</label>
|
||||
|
|
|
@ -26,6 +26,7 @@ export default function HistogramVisType(Private) {
|
|||
setYExtents: false,
|
||||
yAxis: {}
|
||||
},
|
||||
legendPositions: ['left', 'right', 'top', 'bottom'],
|
||||
scales: ['linear', 'log', 'square root'],
|
||||
modes: ['stacked', 'percentage', 'grouped'],
|
||||
editor: histogramTemplate
|
||||
|
|
|
@ -30,6 +30,7 @@ export default function HistogramVisType(Private) {
|
|||
setYExtents: false,
|
||||
yAxis: {}
|
||||
},
|
||||
legendPositions: ['left', 'right', 'top', 'bottom'],
|
||||
scales: ['linear', 'log', 'square root'],
|
||||
editor: lineTemplate
|
||||
},
|
||||
|
|
|
@ -20,6 +20,7 @@ export default function HistogramVisType(Private) {
|
|||
legendPosition: 'right',
|
||||
isDonut: false
|
||||
},
|
||||
legendPositions: ['left', 'right', 'top', 'bottom'],
|
||||
editor: pieTemplate
|
||||
},
|
||||
responseConverter: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue