From 2cc3542af50d03014206c9e522d202585cf47ea2 Mon Sep 17 00:00:00 2001 From: Ludek <13610612+ludeknovy@users.noreply.github.com> Date: Sat, 12 Dec 2020 16:58:14 +0100 Subject: [PATCH] trends min items condition fix (#85) --- src/app/item-detail/label-trend/label-trend.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/item-detail/label-trend/label-trend.component.ts b/src/app/item-detail/label-trend/label-trend.component.ts index 3f686b37..ca4a709a 100644 --- a/src/app/item-detail/label-trend/label-trend.component.ts +++ b/src/app/item-detail/label-trend/label-trend.component.ts @@ -54,7 +54,7 @@ export class LabelTrendComponent implements OnInit { { environment: this.trendInput.environment } ) .subscribe(__ => { - this.vuFilters = __.result.filter((r) => r.count > 5).map((r) => r.maxVu); + this.vuFilters = __.result.filter((r) => r.count >= 5).map((r) => r.maxVu); }); }); } @@ -79,7 +79,7 @@ export class LabelTrendComponent implements OnInit { virtualUsers } ).subscribe((_) => { - this.labelChartOption = _.timePoints.length > 5 ? labelTrendChartOptions(_) : emptyChart(); + this.labelChartOption = _.timePoints.length >= 5 ? labelTrendChartOptions(_) : emptyChart(); this.updateData(); }); }