diff --git a/src/gauge-chart/gauge-chart.component.ts b/src/gauge-chart/gauge-chart.component.ts index 3e251b09..962bd78a 100644 --- a/src/gauge-chart/gauge-chart.component.ts +++ b/src/gauge-chart/gauge-chart.component.ts @@ -50,8 +50,8 @@ export class GaugeChartComponent implements OnInit, OnChanges { if (this.optionsCheck()) { this.element = this.gaugeArea.nativeElement this.options.centralLabel = this.centralLabel - this.gaugeChart = GaugeChart // Drawing and updating the chart - .gaugeChart(this.element, this.canvasWidth, this.options) + // Drawing and updating the chart + this.gaugeChart = GaugeChart.gaugeChart(this.element, this.canvasWidth, this.options) this.gaugeChart.updateNeedle(this.needleValue) } }