fix bug
This commit is contained in:
@ -28,15 +28,14 @@ export class OperationPillarComponent implements OnInit, OnChanges {
|
||||
reRender() {
|
||||
setTimeout(() => {
|
||||
this.chart.data(this.chartData);
|
||||
console.log(this.chartData)
|
||||
this.chart.render();
|
||||
}, 1000)
|
||||
}
|
||||
render(el: ElementRef<HTMLDivElement>): void {
|
||||
this.el = el.nativeElement
|
||||
setTimeout(() => {
|
||||
this.ngZone.runOutsideAngular(() => this.init(this.el));
|
||||
},1000)
|
||||
if(!this.service.http.loading){
|
||||
this.ngZone.runOutsideAngular(() => this.init(this.el));
|
||||
}
|
||||
}
|
||||
|
||||
private init(el: HTMLElement): void {
|
||||
|
||||
Reference in New Issue
Block a user