Merge pull request #2492 from nasa/y-axis-label-fix

[Plot] Y axis label is not displayed when editing #2487
This commit is contained in:
Charles Hacskaylo 2019-09-18 15:05:23 -07:00 committed by GitHub
commit fcf3c76aa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -117,7 +117,7 @@
<div class="gl-plot-label gl-plot-y-label" <div class="gl-plot-label gl-plot-y-label"
ng-class="{'icon-gear': (yKeyOptions.length > 1 && series.length === 1)}" ng-class="{'icon-gear': (yKeyOptions.length > 1 && series.length === 1)}"
ng-bind="yAxisLabel"> >{{yAxis.get('label')}}
</div> </div>
<select class="gl-plot-y-label__select local-controls--hidden" <select class="gl-plot-y-label__select local-controls--hidden"

View File

@ -526,6 +526,7 @@ define([
if (yAxisObject) { if (yAxisObject) {
series.emit('change:yKey', yAxisObject.key); series.emit('change:yKey', yAxisObject.key);
this.config.yAxis.set('label', label);
this.$scope.yAxisLabel = label; this.$scope.yAxisLabel = label;
} }
}; };