add filter service and enable chart states to filter lists

This commit is contained in:
Jesse Lucas
2020-04-01 20:43:54 -04:00
parent cce8b60515
commit 3bdceb1d6b
15 changed files with 144 additions and 48 deletions

View File

@@ -4,7 +4,8 @@
<div fxLayout="row" fxLayoutAlign="space-between stretch">
<app-donut-chart [elementID]="chartID" fxFlex="30" [title]="title"></app-donut-chart>
<div class="items" fxLayout="column" fxLayoutAlign="start end" fxFlex="70">
<app-chart-item *ngFor="let state of states" [state]="state.label" [count]="state.count">
<app-chart-item *ngFor="let state of states" (click)="onItemSelect(state.label)" [state]="state.label"
[count]="state.count">
</app-chart-item>
</div>
</div>