Skip to content

Commit 246e87e

Browse files
Make Last 30 Solicitations and Last 30 Unevaluated pie charts uniform in size
1 parent a8f7d17 commit 246e87e

4 files changed

Lines changed: 19 additions & 6 deletions

File tree

src/app/analytics/solicitation-result/solicitation-result.component.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,14 @@
66
font-size: 20px;
77
margin-bottom: 20px;
88
font-weight: 600;
9+
}
10+
11+
/* Add this to solicitation-result.component.scss */
12+
.sol-result-container canvas {
13+
width: 400px !important;
14+
/* Ensure this matches the other chart's width */
15+
height: 400px !important;
16+
/* Ensure this matches the other chart's height */
17+
display: block;
18+
margin: 0 auto;
919
}

src/app/analytics/undetermined-solicitations/undetermined-solicitations.component.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@
113113
display: block;
114114
margin: 0px auto;
115115
transform: translateZ(0);
116-
/* font-weight.*300 */
116+
width: 400px;
117+
/* Example fixed width */
118+
height: 400px;
119+
/* Example fixed height */
117120
}
118121

119122
.undeter-solic-dispaly1 {

src/app/analytics/undetermined-solicitations/undetermined-solicitations.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ describe('UndeterminedSolicitationsComponent', () => {
4040
labels: ['Presolicitation', 'Other Undetermined', 'No Documents', 'Non-Machine Readable'],
4141
datasets: [{
4242
data: [10, 20, 15, 5],
43-
backgroundColor: ['#2C81C0', '#ff0000', '#B46AF0', '#C28800'],
44-
hoverBackgroundColor: ['#2C81C0', '#ff0000', '#B46AF0', '#C28800']
43+
backgroundColor: ['#2C81C0', '#ff0000', '#C28800', '#B46AF0'],
44+
hoverBackgroundColor: ['#2C81C0', '#ff0000', '#C28800', '#B46AF0']
4545
}]
4646
});
4747
});

src/app/analytics/undetermined-solicitations/undetermined-solicitations.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class UndeterminedSolicitationsComponent implements OnInit {
5757
public showUnevaluatedTooltip = false; // Add this line
5858

5959
// Add this property for tooltip content
60-
public unevaluatedTooltipText = `Other Undetermined' solicitations are solicitations with attachments that are currently failed to be accessed by the system due to various reasons (e.g., security redirect).`; // Add this line
60+
public unevaluatedTooltipText = 'Other Undetermined solicitations are solicitations with attachments that cannot be accessed by SRT for various reasons (e.g., security redirect).'; // Add this line
6161

6262

6363
public displayPresolicitation = '0%';
@@ -94,8 +94,8 @@ export class UndeterminedSolicitationsComponent implements OnInit {
9494
labels: this.pieChartLabels,
9595
datasets: [{
9696
data: [presolicitation, undetermined, NoDocument, NonMachineReadable],
97-
backgroundColor: ['#2C81C0', '#ff0000', '#B46AF0', '#C28800'],
98-
hoverBackgroundColor: ['#2C81C0', '#ff0000', '#B46AF0', '#C28800']
97+
backgroundColor: ['#2C81C0', '#ff0000', '#C28800', '#B46AF0'],
98+
hoverBackgroundColor: ['#2C81C0', '#ff0000', '#C28800', '#B46AF0']
9999
}
100100
]
101101
};

0 commit comments

Comments
 (0)