refactor to use array of objects to map state data to chart update
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<div fxLayout="row" fxLayoutAlign="space-between start">
|
||||
<app-donut-chart [elementID]="chartID"></app-donut-chart>
|
||||
<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 *ngFor="let state of states" [state]="state.label" [count]="state.count">
|
||||
</app-chart-item>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user