angular-hicharts deprecated their ref and uses a ref$ observable instead.
I have updated to Highcharts 7 and the latest version of angular-highcharts that supports Highcharts 7.
I used the code below to drillUp() but I assume that I should change to use the new ref$ but I am unsure how to.
this.pieChart = new Chart(this.getConfig());
...
...
this.pieChart.ref.drillUp();
How do I use the ref$ observable to drillUp()?
Do I need to subscribe to ref$ and assign the reference to the variable? Something like this?
pieChart.ref$.subscribe(chartReference => {
this.chartReference = chartReference;
});
The above gives an error for missing properties when typed as Chart.