diff --git a/src/app/graphs/label-trend.ts b/src/app/graphs/label-trend.ts index 149f5bd9..dfbc9c4b 100644 --- a/src/app/graphs/label-trend.ts +++ b/src/app/graphs/label-trend.ts @@ -165,7 +165,7 @@ export const emptyChart = () => { }, title: { text: 'No data' }, subtitle: { - text: 'there must be at least 5 records for given label' + text: 'there must be at least 2 records for given label' }, }; }; 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 ca4a709a..6c31fc4f 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 >= 2).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 >= 2 ? labelTrendChartOptions(_) : emptyChart(); this.updateData(); }); }