<div class="good-labels" *ngIf="goodLabels.length > 0"> <div class="subplot" *ngFor="let subplot of goodLabels"> <plotly-plot [data]="subplot.data" [layout]="subplot.layout"></plotly-plot> </div> </div> <div class="bad-labels" *ngIf="badLabels.length > 0"> <div class="subplot" *ngFor="let subplot of badLabels"> <plotly-plot [data]="subplot.data" [layout]="subplot.layout"></plotly-plot> </div> </div>