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
@@ -1,5 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { cardElevation } from '../../style';
import { SystemConfigService } from 'src/app/system-config.service';
@Component({
selector: 'app-device-chart',
@@ -9,10 +10,15 @@ import { cardElevation } from '../../style';
export class DeviceChartComponent implements OnInit {
chartID: string = 'devicesChart';
elevation: string = cardElevation;
data: number[];
constructor() { }
constructor(private systemConfigService: SystemConfigService) { }
ngOnInit(): void {
this.systemConfigService.getFolders().subscribe(
data => {
this.data = [0, 230, 32, 40];
}
);
}
}