updating legendPosition to read values from config

This commit is contained in:
ppisljar 2016-09-07 10:31:14 +02:00
parent aa69744f67
commit 6aa3476a5e
5 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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>

View file

@ -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

View file

@ -30,6 +30,7 @@ export default function HistogramVisType(Private) {
setYExtents: false,
yAxis: {}
},
legendPositions: ['left', 'right', 'top', 'bottom'],
scales: ['linear', 'log', 'square root'],
editor: lineTemplate
},

View file

@ -20,6 +20,7 @@ export default function HistogramVisType(Private) {
legendPosition: 'right',
isDonut: false
},
legendPositions: ['left', 'right', 'top', 'bottom'],
editor: pieTemplate
},
responseConverter: false,