pass and add data to donut chart

This commit is contained in:
Jesse Lucas
2020-03-29 16:51:12 -04:00
parent f250425ef1
commit 08da982de5
5 changed files with 38 additions and 14 deletions
@@ -11,16 +11,20 @@ import { cardElevation } from '../../style'
export class FolderChartComponent implements OnInit {
chartID: string = 'foldersChart';
elevation: string = cardElevation;
data: Folder[];
data: number[];
constructor(private systemConfigService: SystemConfigService) { }
ngOnInit(): void {
this.systemConfigService.getFolders().subscribe(
data => {
console.log("char folder data", data)
this.data = [0, 1, 32, 40];
}
);
}
/*
ngAfterViewInit() {
}
*/
}