@@ -9,12 +9,13 @@ import { adaptor as areaAdaptor } from '../area/adaptor';
9
9
import { adaptor as gaugeAdaptor } from '../gauge/adaptor' ;
10
10
import { adaptor as tinyLineAdaptor } from '../tiny-line/adaptor' ;
11
11
import { adaptor as tinyColumnAdaptor } from '../tiny-column/adaptor' ;
12
- import { adaptor as tinyAreadaptor } from '../tiny-area/adaptor' ;
12
+ import { adaptor as tinyAreaAdaptor } from '../tiny-area/adaptor' ;
13
13
import { adaptor as ringProgressAdaptor } from '../ring-progress/adaptor' ;
14
14
import { adaptor as progressAdaptor } from '../progress/adaptor' ;
15
15
import { adaptor as scatterAdaptor } from '../scatter/adaptor' ;
16
16
import { adaptor as histogramAdaptor } from '../histogram/adaptor' ;
17
17
import { adaptor as funnelAdaptor } from '../funnel/adaptor' ;
18
+ import { adaptor as stockAdaptor } from '../stock/adaptor' ;
18
19
import { Line , LineOptions } from '../line' ;
19
20
import { Pie , PieOptions } from '../pie' ;
20
21
import { Bar , BarOptions } from '../bar' ;
@@ -29,6 +30,7 @@ import { Progress, ProgressOptions } from '../progress';
29
30
import { Scatter , ScatterOptions } from '../scatter' ;
30
31
import { Histogram , HistogramOptions } from '../histogram' ;
31
32
import { Funnel , FunnelOptions } from '../funnel' ;
33
+ import { Stock , StockOptions } from '../stock' ;
32
34
33
35
/**
34
36
* 移除 options 中的 width、height 设置
@@ -100,6 +102,10 @@ export type IPlotTypes =
100
102
| {
101
103
readonly type : 'funnel' ;
102
104
readonly options : OmitSize < FunnelOptions > ;
105
+ }
106
+ | {
107
+ readonly type : 'stock' ;
108
+ readonly options : OmitSize < StockOptions > ;
103
109
} ;
104
110
105
111
/**
@@ -114,12 +120,13 @@ const PLOT_ADAPTORS = {
114
120
gauge : gaugeAdaptor ,
115
121
'tiny-line' : tinyLineAdaptor ,
116
122
'tiny-column' : tinyColumnAdaptor ,
117
- 'tiny-area' : tinyAreadaptor ,
123
+ 'tiny-area' : tinyAreaAdaptor ,
118
124
'ring-progress' : ringProgressAdaptor ,
119
125
progress : progressAdaptor ,
120
126
scatter : scatterAdaptor ,
121
127
histogram : histogramAdaptor ,
122
128
funnel : funnelAdaptor ,
129
+ stock : stockAdaptor ,
123
130
} ;
124
131
125
132
/**
@@ -141,6 +148,7 @@ const PLOT_CONSTRUCTOR = {
141
148
scatter : Scatter ,
142
149
histogram : Histogram ,
143
150
funnel : Funnel ,
151
+ stock : Stock ,
144
152
} ;
145
153
146
154
/**
0 commit comments