File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ import { Observable } from 'rxjs';
7
7
8
8
HC_stock ( Highcharts ) ;
9
9
10
+ interface ExtendedPlotCandlestickDataGroupingOptions extends Highcharts . PlotCandlestickDataGroupingOptions {
11
+ enabled : boolean
12
+ }
13
+
10
14
@Component ( {
11
15
selector : 'app-lazy-loading-chart' ,
12
16
templateUrl : './lazy-loading-chart.component.html' ,
@@ -49,7 +53,7 @@ export class LazyLoadingChartComponent {
49
53
data : chartData ,
50
54
dataGrouping : {
51
55
enabled : false
52
- }
56
+ } as ExtendedPlotCandlestickDataGroupingOptions
53
57
} , false ) ;
54
58
55
59
chart . update ( {
Original file line number Diff line number Diff line change 1
- import { Component , OnInit } from '@angular/core' ;
1
+ import { Component } from '@angular/core' ;
2
2
import * as Highcharts from 'highcharts' ;
3
3
4
+ interface ExtendedSeriesCandlestickOptions extends Highcharts . SeriesCandlestickOptions {
5
+ color : Highcharts . ColorType ;
6
+ }
7
+
4
8
@Component ( {
5
9
selector : 'app-line-test' ,
6
10
templateUrl : './line-test.component.html' ,
@@ -20,7 +24,7 @@ export class LineTestComponent {
20
24
} ;
21
25
22
26
updateSeriesColor ( ) {
23
- this . chartOptions . series [ 0 ] . color = 'hotpink' ;
27
+ ( this . chartOptions . series [ 0 ] as ExtendedSeriesCandlestickOptions ) . color = 'hotpink' ;
24
28
this . updateFlag = true ;
25
29
}
26
30
}
You can’t perform that action at this time.
0 commit comments