Skip to content

Commit 3192868

Browse files
Fixedd TS.
1 parent 6306d0a commit 3192868

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/app/lazy-loading-chart/lazy-loading-chart.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import { Observable } from 'rxjs';
77

88
HC_stock(Highcharts);
99

10+
interface ExtendedPlotCandlestickDataGroupingOptions extends Highcharts.PlotCandlestickDataGroupingOptions{
11+
enabled: boolean
12+
}
13+
1014
@Component({
1115
selector: 'app-lazy-loading-chart',
1216
templateUrl: './lazy-loading-chart.component.html',
@@ -49,7 +53,7 @@ export class LazyLoadingChartComponent {
4953
data: chartData,
5054
dataGrouping: {
5155
enabled: false
52-
}
56+
} as ExtendedPlotCandlestickDataGroupingOptions
5357
}, false);
5458

5559
chart.update({

src/app/tests/line-test/line-test.component.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
import { Component, OnInit } from '@angular/core';
1+
import { Component } from '@angular/core';
22
import * as Highcharts from 'highcharts';
33

4+
interface ExtendedSeriesCandlestickOptions extends Highcharts.SeriesCandlestickOptions {
5+
color: Highcharts.ColorType;
6+
}
7+
48
@Component({
59
selector: 'app-line-test',
610
templateUrl: './line-test.component.html',
@@ -20,7 +24,7 @@ export class LineTestComponent {
2024
};
2125

2226
updateSeriesColor() {
23-
this.chartOptions.series[0].color = 'hotpink';
27+
(this.chartOptions.series[0] as ExtendedSeriesCandlestickOptions).color = 'hotpink';
2428
this.updateFlag = true;
2529
}
2630
}

0 commit comments

Comments
 (0)