[SSE] Fix Bug 47614

This commit is contained in:
Julia Radzhabova 2020-11-24 12:07:57 +03:00
parent 0083bb3347
commit 872d3f0801

View file

@ -528,11 +528,15 @@ define([
}, },
onSwitch: function() { onSwitch: function() {
this.chartSettings.switchRowCol(); var res = this.chartSettings.switchRowCol();
this.updateSeriesList(this.chartSettings.getSeries(), 0); if (res === Asc.c_oAscError.ID.MaxDataSeriesError)
this.updateCategoryList(this.chartSettings.getCatValues()); Common.UI.warning({msg: this.errorMaxRows, maxwidth: 600});
this.updateRange(); else {
this.updateButtons(); this.updateSeriesList(this.chartSettings.getSeries(), 0);
this.updateCategoryList(this.chartSettings.getCatValues());
this.updateRange();
this.updateButtons();
}
}, },
textTitle: 'Chart Data', textTitle: 'Chart Data',