Skip to content

Commit

Permalink
trend limit change (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeknovy authored Mar 2, 2021
1 parent 0ccae37 commit dea129c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/graphs/label-trend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
},
};
};
4 changes: 2 additions & 2 deletions src/app/item-detail/label-trend/label-trend.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
}
Expand All @@ -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();
});
}
Expand Down

0 comments on commit dea129c

Please sign in to comment.