Skip to content

Commit

Permalink
fix(Data Explorer): X axis label now updates when changing x column (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreykwan authored Aug 12, 2022
1 parent 0ee1bc6 commit 89d7277
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ export class TableStudent extends ComponentStudent {
this.dataExplorerSeries[dataExplorerSeriesIndex].xColumn = columnIndex;
this.dataExplorerXColumn = columnIndex;
this.setDataExplorerXColumnIsDisabled();
if (this.isDataExplorerXAxisLabelEmpty()) {
this.updateDataExplorerXAxisLabel(columnIndex);
}
this.updateDataExplorerXAxisLabel(columnIndex);
}

isDataExplorerXAxisLabelEmpty(): boolean {
Expand Down Expand Up @@ -1045,9 +1043,7 @@ export class TableStudent extends ComponentStudent {
for (const singleSeries of this.dataExplorerSeries) {
singleSeries.xColumn = this.dataExplorerXColumn;
}
if (this.isDataExplorerXAxisLabelEmpty()) {
this.updateDataExplorerXAxisLabel(this.dataExplorerXColumn);
}
this.updateDataExplorerXAxisLabel(this.dataExplorerXColumn);
this.studentDataChanged();
}

Expand Down

0 comments on commit 89d7277

Please sign in to comment.