catalogicsoftware / ngx-dynamic-dashboard-framework

This is a JSON driven angular x based dashboard framework that is inspired by JIRA's dashboard implementation and https://github.com/raulgomis/angular-dashboard-framework
MIT License
187 stars 95 forks source link

where is the 'view' variable comes from #28

Closed MHL3060 closed 3 years ago

MHL3060 commented 3 years ago

Hi, Thanks for creating a such good dashboard.

I am evaluating the dashboard framework and try to understand how thing works,

I am trying to integrate this dashboard into jhipster which is using Angular 10, but it is complainting the view variable is undefined during compilation.

can you please tell me where the 'view' comes from in this snippet. the one on the right hand side. Thanks.

in src/app/gadgets/disk/view.html I couldn't find the this variable in the disk-gadget.component.ts or its super class.

<ngx-charts-pie-chart *ngIf="!inConfig"
                        [view]="view"
                        [scheme]="colorScheme"
                        [results]="data"
                        [legend]="true"
                        [explodeSlices]="false"
                        [labels]="false"
                        [doughnut]="true"
                        [gradient]="false"
                        [arcWidth]=".4"
                        (select)="drillDownPopUp.showDetail($event)">
                </ngx-charts-pie-chart>
jayhamilton commented 3 years ago

view is a property of ngx-charts. This is typically set in the components ts file. See https://swimlane.gitbook.io/ngx-charts/examples/bar-charts/normalized-horizontal-bar-chart.

MHL3060 commented 3 years ago

thanks. I see. some of the variables in the template doesn't exists in the component. that is why I was wondering.