<span class="bar" [style.background-color]="'red'"
[style.height.px]="getBarHeight(box.activityTypeCounts, 'Enrollment-RFI')"
[matTooltip]="getTooltipText(box.activityTypeCounts, 'Enrollment-RFI')"></span>
boxes: IssueDashboardViewModel[] = [];
activityDisplay: boolean = false;
getBarHeight(activityTypeCounts: { [key: string]: number }, activityType: string): string {
if (activityTypeCounts && activityTypeCounts[activityType]) {
const count = activityTypeCounts[activityType];
return count > 0 ? count + 'px' : '0';
}
return '0';
}
.box {
background-color: #f0f0f0;
border: 1px solid #ccc;
text-align: center;
}
.date {
font-weight: bold;
}
.issue-count {
color: #007bff;
}
.bar {
display: inline-block;
width: 8px;
height: 20px;
margin-left: 4px;
vertical-align: middle;
}