diff --git a/src/contributions/PRInfo/PRInfo.tsx b/src/contributions/PRInfo/PRInfo.tsx index 3fd5657..539f139 100644 --- a/src/contributions/PRInfo/PRInfo.tsx +++ b/src/contributions/PRInfo/PRInfo.tsx @@ -535,6 +535,7 @@ class RepositoryServiceHubContent extends React.Component<{}, IRepositoryService let reviewerPieChartData = getPieChartInfo(this.approverList.value); let groupBarChartData = getStackedBarChartInfo(this.approvalGroupList,""); let reviewerBarChartData = getStackedBarChartInfo(this.approverList.value, this.noReviewerText); + let smallNumberOfReviewers = reviewerPieChartData.labels.length < 7 let durationTrenChartData = getDurationBarChartInfo(this.durationSlices); let closedPRChartData = getPullRequestsCompletedChartInfo(this.durationSlices); if(doneLoading) @@ -722,16 +723,19 @@ class RepositoryServiceHubContent extends React.Component<{}, IRepositoryService -
- -
- + {/* Removing the Doughnut when there are too many reviewers */} + {smallNumberOfReviewers && +
+ +
+ +
+
- -
+ }
-
+