Guest User

Untitled

a guest
Jun 13th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. <div *ngFor="let data of dashboardDataMulti; index as i">
  2. <ngb-accordion #acc="ngbAccordion" activeIds="ngb-panel-{{i}}" type="light">
  3. <ngb-panel title="{{data.name}}">
  4. <ng-template ngbPanelContent>
  5. <ngx-charts-pie-grid
  6. [view]="view"
  7. [scheme]="colorScheme"
  8. [results]="dashboardDataMulti[data]"
  9. [designatedTotal]="100"
  10. [animations]="animations"
  11. [tooltipDisabled]="tooltipDisabled"
  12. (select)="onSelect($event)">
  13. </ngx-charts-pie-grid>
  14. </ng-template>
  15. </ngb-panel>
  16. </ngb-accordion>
  17. </div>
  18.  
  19. setTimeout(() => {
  20. this.generateDashboardData();
  21. // change the data periodically
  22. this.dataInterval = setInterval(() => this.generateDashboardData(), 10 * 600);
  23. }, 1000);
Add Comment
Please, Sign In to add comment