update device chart to use donut chart updateData

This commit is contained in:
Jesse Lucas
2020-03-29 16:51:12 -04:00
parent 9589f25e57
commit 2fe94736e6
3 changed files with 18 additions and 17 deletions
@@ -12,12 +12,10 @@ import { DonutChartComponent } from '../donut-chart/donut-chart.component';
export class FolderChartComponent implements OnInit {
@ViewChild(DonutChartComponent) donutChart: DonutChartComponent;
chartID: string = 'foldersChart';
states: { label: string, count: number }[];
states: { label: string, count: number }[] = [];
elevation: string = cardElevation;
constructor(private folderService: FolderService) {
this.states = [];
}
constructor(private folderService: FolderService) { }
ngOnInit(): void {
for (let state in Folder.StateType) {