I am using Angular Material 7 with Angular 7. For creating charts I am using angular-guage-chart: 0.7.2
I fetch some data from api, process it and then render the same as guage chart. However, this is not working fine me sometimes.
Sometimes, the chart doesn't get rendered and I get the following error:
ERROR TypeError: Cannot read properties of undefined (reading 'removeGauge')
at GaugeChartComponent.push../node_modules/angular-gauge-chart/fesm5/angular-gauge-chart.js.GaugeChartComponent.drawChart (angular-gauge-chart.js:96:1)
at GaugeChartComponent.push../node_modules/angular-gauge-chart/fesm5/angular-gauge-chart.js.GaugeChartComponent.ngDoCheck (angular-gauge-chart.js:68:1)
at checkAndUpdateDirectiveInline (core.js:22102:1)
at checkAndUpdateNodeInline (core.js:23363:1)
at checkAndUpdateNode (core.js:23325:1)
at debugCheckAndUpdateNode (core.js:23959:1)
at debugCheckDirectivesFn (core.js:23919:1)
at Object.eval [as updateDirectives] (DashboardComponent.html:234:19)
at Object.debugUpdateDirectives [as updateDirectives] (core.js:23911:1)
at checkAndUpdateView (core.js:23307:1)
I am using Angular Material 7 with Angular 7. For creating charts I am using angular-guage-chart: 0.7.2
I fetch some data from api, process it and then render the same as guage chart. However, this is not working fine me sometimes.
Sometimes, the chart doesn't get rendered and I get the following error:
ERROR TypeError: Cannot read properties of undefined (reading 'removeGauge') at GaugeChartComponent.push../node_modules/angular-gauge-chart/fesm5/angular-gauge-chart.js.GaugeChartComponent.drawChart (angular-gauge-chart.js:96:1) at GaugeChartComponent.push../node_modules/angular-gauge-chart/fesm5/angular-gauge-chart.js.GaugeChartComponent.ngDoCheck (angular-gauge-chart.js:68:1) at checkAndUpdateDirectiveInline (core.js:22102:1) at checkAndUpdateNodeInline (core.js:23363:1) at checkAndUpdateNode (core.js:23325:1) at debugCheckAndUpdateNode (core.js:23959:1) at debugCheckDirectivesFn (core.js:23919:1) at Object.eval [as updateDirectives] (DashboardComponent.html:234:19) at Object.debugUpdateDirectives [as updateDirectives] (core.js:23911:1) at checkAndUpdateView (core.js:23307:1)