Style donut chart and add total count

This commit is contained in:
Jesse Lucas
2020-03-29 16:51:12 -04:00
parent 485a234263
commit 6158b20a8c
5 changed files with 27 additions and 3 deletions
@@ -22,8 +22,13 @@ export class FolderChartComponent implements OnInit {
}
ngAfterViewInit() {
let totalCount: number = 0;
this.folderService.getAll().subscribe(
folder => {
// Count the number of folders and set chart
totalCount++;
this.donutChart.count = totalCount;
// Get StateType and convert to string
const stateType: Folder.StateType = Folder.getStateType(folder);
const state: string = Folder.stateTypeToString(stateType);