cebor / angular-highcharts

Highcharts directive for Angular
MIT License
214 stars 64 forks source link

ref$ not supported ? #398

Closed PGTBoos closed 5 months ago

PGTBoos commented 5 months ago

I am updating an aged angular project to angular 17. Also angular-highcharts gets updated. My code makes use of ref$ , this does not seam to be part of the lib anymore ?. How would one upgrade code like below (it's maybe one of the simpler usages of ref$ i have quite some more).

@HostListener('window:resize', ['$event'])
    sizeChange(event) {
    this._event = event;
    setTimeout(() => {  this.chart.ref$.pipe(take(1), takeUntil(this._destroyed$)).subscribe(chart => chart.reflow());   });
     }
PGTBoos commented 5 months ago

oops sorry wrong posting, mistake in np highcharts package

PGTBoos commented 5 months ago

sorry misstake wrong highchart package we use plain highcharts not this one