percent per week data viewing done

This commit is contained in:
piratefinn 2017-12-14 20:14:47 +00:00
parent 93f15ae6de
commit 7e7bb4ccf3
3 changed files with 104 additions and 30 deletions

View file

@ -30,10 +30,8 @@ export class PiePanel implements OnInit {
private setData(data: any) {
this.doughnutChartData = Object.values(data);
console.log(this.chartData);
// setTimeout is currently a workaround for ng2-charts labels
setTimeout(() => this.doughnutChartLabels = Object.keys(data), 0);
console.log(this.chartLabels);
}
// convert Hex to RGBA