Skip to content

Commit

Permalink
Fix chart x-axis being formatted only by profile A
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Lebo committed Apr 16, 2024
1 parent e5c7301 commit e9ed03c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e9ed03c

Please sign in to comment.