Unset the displayRange when updating yAxis (#3504)

Co-authored-by: Deep Tailor <deep.j.tailor@nasa.gov>
This commit is contained in:
Shefali Joshi
2020-11-16 11:39:20 -08:00
committed by GitHub
parent d75c4b4049
commit 59946e89ef

View File

@ -171,6 +171,7 @@ define([
* Update yAxis format, values, and label from known series. * Update yAxis format, values, and label from known series.
*/ */
updateFromSeries: function (series) { updateFromSeries: function (series) {
this.unset('displayRange');
const plotModel = this.plot.get('domainObject'); const plotModel = this.plot.get('domainObject');
const label = _.get(plotModel, 'configuration.yAxis.label'); const label = _.get(plotModel, 'configuration.yAxis.label');
const sampleSeries = series.first(); const sampleSeries = series.first();