From 5f9b8b38c01cfd6b0d698b6c1b8ae2f5573d2294 Mon Sep 17 00:00:00 2001 From: Dorchies David <david.dorchies@irstea.fr> Date: Fri, 12 Mar 2021 14:59:44 +0100 Subject: [PATCH] fix: Y Axis label update issue Refs #489 --- src/app/components/results-chart/results-chart.component.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/components/results-chart/results-chart.component.ts b/src/app/components/results-chart/results-chart.component.ts index ff0cc3a2b..a547f1097 100644 --- a/src/app/components/results-chart/results-chart.component.ts +++ b/src/app/components/results-chart/results-chart.component.ts @@ -134,8 +134,6 @@ export class ResultsChartComponent extends ResultsComponentDirective implements public set chartX(X) { if (X !== this.chartX) { this._results.chartX = X; - this.forceRebuild(); - // refresh chart this.drawChart(); } } @@ -149,8 +147,6 @@ export class ResultsChartComponent extends ResultsComponentDirective implements public set chartY(Y) { if (Y !== this.chartY) { this._results.chartY = Y; - this.forceRebuild(); - // refresh chart this.drawChart(); } } @@ -186,6 +182,7 @@ export class ResultsChartComponent extends ResultsComponentDirective implements public drawChart() { if (this._results && this._results.hasPlottableResults()) { + this.forceRebuild(); switch (this._graphTypeComponent.selectedValue) { case ChartType.Histogram: this.graph_type = "bar"; -- GitLab