Filter lists when donut chart items are clicked

This commit is contained in:
Jesse Lucas
2020-04-03 09:20:27 -05:00
parent a9b6801b22
commit 915faabe25
3 changed files with 25 additions and 6 deletions
+3 -2
View File
@@ -2,8 +2,9 @@
<div class="tui-card-title">{{title | uppercase}}</div>
<div class="tui-card-content">
<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-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>