From e9ed03cf057d8f72ca682c382455dd207147f0d2 Mon Sep 17 00:00:00 2001 From: Denis Lebo Date: Tue, 16 Apr 2024 20:37:34 +0200 Subject: [PATCH] Fix chart x-axis being formatted only by profile A --- .../src/app/diff/profilechart/diff-profilechart.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/planner/src/app/diff/profilechart/diff-profilechart.component.ts b/projects/planner/src/app/diff/profilechart/diff-profilechart.component.ts index d0c5fb0b..ac9f5edb 100644 --- a/projects/planner/src/app/diff/profilechart/diff-profilechart.component.ts +++ b/projects/planner/src/app/diff/profilechart/diff-profilechart.component.ts @@ -93,7 +93,9 @@ export class ProfileDifferenceChartComponent extends Streamed implements OnInit } private plotCharts(): void { - this.plotter.plotCharts(this.profileA.totalDuration); + const totalDuration = this.profileA.totalDuration > this.profileB.totalDuration ? + this.profileA.totalDuration : this.profileB.totalDuration; + this.plotter.plotCharts(totalDuration); } private hookChartEvents(): void {