Create states map and set chart-items based on map

This commit is contained in:
Jesse Lucas
2020-03-29 16:51:12 -04:00
parent 02d14c7e9b
commit 7a657bf3c7
4 changed files with 19 additions and 9 deletions
@@ -3,10 +3,9 @@
<mat-card-content>
<div fxLayout="row" fxLayoutAlign="space-between start">
<app-donut-chart [elementID]="chartID"></app-donut-chart>
<div fxLayout="column" fxLayoutAlign="space-evenly end">
<app-chart-item></app-chart-item>
<app-chart-item></app-chart-item>
<app-chart-item></app-chart-item>
<div class="items" fxLayout="column" fxLayoutAlign="space-evenly end">
<app-chart-item *ngFor="let state of states | keyvalue" [state]="state.key" [count]="state.value">
</app-chart-item>
</div>
</div>
</mat-card-content>