create chart item state to toggle filter selection

This commit is contained in:
Jesse Lucas
2020-04-03 09:20:27 -05:00
parent 9907523321
commit bf062db83f
8 changed files with 61 additions and 24 deletions
+2 -2
View File
@@ -5,8 +5,8 @@
<app-donut-chart [elementID]="chartID" fxFlex="30" [title]="title" (stateEvent)="onItemSelect($event)">
</app-donut-chart>
<div class=" items" fxLayout="column" fxLayoutAlign="start end" fxFlex="70">
<app-chart-item *ngFor="let state of states" (click)="onItemSelect(state.label)" [state]="state.label"
[count]="state.count">
<app-chart-item *ngFor="let state of states" (click)="onItemSelect(state)" [state]="state.label"
[count]="state.count" [selected]="state.selected">
</app-chart-item>
</div>
</div>