Posted 12 April 2019, 1:10 am EST
Hello.
I ask a question because there is a problem when I call up the chart through pop-up.
I hope you can help me.
The problem is that when you page pop-ups, the chart can’t retrieve data.
I think it’s a pop-up call after setting up all the data. Because of the callback.
Is there any way I can page pop-ups and show you the chart?
Thank you very much for your hard work.
*.html
*.ts
chartDatas: any = ;
ngAfterViewChecked(){
if (this.chart1) {
this.chart1.hostElement.onmouseup = (e) => {
this.hitInfo = this.chart1.hitTest(e);
this.chartPassPopup(this.hitInfo);
};
}
}
private chartPassPopup = (hitInfo) => {
this.lgModal.show();
this.chartDatas = ;
this.chartDatas[0] = [ {"cp":110905,"pass":110888,"fail":1}, {"cp":134560,"pass":134541,"fail":2}, {"cp":71853,"pass":71835,"fail":3}, {"cp":20434,"pass":20434,"fail":4}, {"cp":71853,"pass":71835,"fail":5}, {"cp":0,"pass":0,"fail":6}, {"cp":0,"pass":0,"fail":7}, {"cp":0,"pass":0,"fail":8}, {"cp":0,"pass":0,"fail":9}]
}