1π
β
I think you need to pass the chart object instead of the ElementRef to the update function of your service and it should workβ¦
updateReport() {
if ( this.dataSource ) {
this.reportService.update(this.chart, this.dataSource);
}
}
Source:stackexchange.com