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 {