This commit is contained in:
Levko Kravets 2018-01-03 14:27:14 +02:00
parent 2eaec6970e
commit 4f4411a46a
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@
</div>
</div>
<div ng-if="['line', 'area', 'column'].indexOf(options.globalSeriesType) >= 0" class="checkbox">
<div ng-if="['line', 'area', 'column', 'scatter'].indexOf(options.globalSeriesType) >= 0" class="checkbox">
<label><input type="checkbox" ng-model="options.annotations"> Show annotations</label>
</div>
@ -129,7 +129,7 @@
<div ng-if="options.series.stacking" class="checkbox">
<label class="control-label">
<input type="checkbox" ng-model="options.series.percentValues">
Percent values
Percent stacking
</label>
</div>
</div>

View File

@ -284,7 +284,7 @@ function enableAnnotations(layout, seriesList, options) {
seriesList.forEach((series) => {
series.textposition = 'inside';
});
} else if (['line', 'area'].indexOf(options.globalSeriesType) >= 0) {
} else if (['line', 'area', 'scatter'].indexOf(options.globalSeriesType) >= 0) {
layout.yaxis.showticklabels = false;
delete layout.yaxis2;