1 |
|
2 | /*
|
3 | * Licensed to the Apache Software Foundation (ASF) under one
|
4 | * or more contributor license agreements. See the NOTICE file
|
5 | * distributed with this work for additional information
|
6 | * regarding copyright ownership. The ASF licenses this file
|
7 | * to you under the Apache License, Version 2.0 (the
|
8 | * "License"); you may not use this file except in compliance
|
9 | * with the License. You may obtain a copy of the License at
|
10 | *
|
11 | * http://www.apache.org/licenses/LICENSE-2.0
|
12 | *
|
13 | * Unless required by applicable law or agreed to in writing,
|
14 | * software distributed under the License is distributed on an
|
15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
16 | * KIND, either express or implied. See the License for the
|
17 | * specific language governing permissions and limitations
|
18 | * under the License.
|
19 | */
|
20 |
|
21 |
|
22 | /**
|
23 | * AUTO-GENERATED FILE. DO NOT MODIFY.
|
24 | */
|
25 |
|
26 | /*
|
27 | * Licensed to the Apache Software Foundation (ASF) under one
|
28 | * or more contributor license agreements. See the NOTICE file
|
29 | * distributed with this work for additional information
|
30 | * regarding copyright ownership. The ASF licenses this file
|
31 | * to you under the Apache License, Version 2.0 (the
|
32 | * "License"); you may not use this file except in compliance
|
33 | * with the License. You may obtain a copy of the License at
|
34 | *
|
35 | * http://www.apache.org/licenses/LICENSE-2.0
|
36 | *
|
37 | * Unless required by applicable law or agreed to in writing,
|
38 | * software distributed under the License is distributed on an
|
39 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
40 | * KIND, either express or implied. See the License for the
|
41 | * specific language governing permissions and limitations
|
42 | * under the License.
|
43 | */
|
44 | import { use } from './lib/extension';
|
45 | export * from './lib/export/core'; // ----------------------------------------------
|
46 | // All of the modules that are allowed to be
|
47 | // imported are listed below.
|
48 | //
|
49 | // Users MUST NOT import other modules that are
|
50 | // not included in this list.
|
51 | // ----------------------------------------------
|
52 |
|
53 | import { SVGRenderer, CanvasRenderer } from './lib/export/renderers';
|
54 | import { LineChart, BarChart, PieChart, ScatterChart, RadarChart, MapChart, TreeChart, TreemapChart, GraphChart, GaugeChart, FunnelChart, ParallelChart, SankeyChart, BoxplotChart, CandlestickChart, EffectScatterChart, LinesChart, HeatmapChart, PictorialBarChart, ThemeRiverChart, SunburstChart, CustomChart } from './lib/export/charts';
|
55 | import { GridComponent, PolarComponent, GeoComponent, SingleAxisComponent, ParallelComponent, CalendarComponent, GraphicComponent, ToolboxComponent, TooltipComponent, AxisPointerComponent, BrushComponent, TitleComponent, TimelineComponent, MarkPointComponent, MarkLineComponent, MarkAreaComponent, LegendComponent, DataZoomComponent, DataZoomInsideComponent, DataZoomSliderComponent, VisualMapComponent, VisualMapContinuousComponent, VisualMapPiecewiseComponent, AriaComponent, DatasetComponent, TransformComponent } from './lib/export/components';
|
56 | import { UniversalTransition, LabelLayout } from './lib/export/features'; // -----------------
|
57 | // Render engines
|
58 | // -----------------
|
59 | // Render via Canvas.
|
60 | // echarts.init(dom, null, { renderer: 'canvas' })
|
61 |
|
62 | use([CanvasRenderer]); // Render via SVG.
|
63 | // echarts.init(dom, null, { renderer: 'svg' })
|
64 |
|
65 | use([SVGRenderer]); // ----------------
|
66 | // Charts (series)
|
67 | // ----------------
|
68 | // All of the series types, for example:
|
69 | // chart.setOption({
|
70 | // series: [{
|
71 | // type: 'line' // or 'bar', 'pie', ...
|
72 | // }]
|
73 | // });
|
74 |
|
75 | use([LineChart, BarChart, PieChart, ScatterChart, RadarChart, MapChart, TreeChart, TreemapChart, GraphChart, GaugeChart, FunnelChart, ParallelChart, SankeyChart, BoxplotChart, CandlestickChart, EffectScatterChart, LinesChart, HeatmapChart, PictorialBarChart, ThemeRiverChart, SunburstChart, CustomChart]); // -------------------
|
76 | // Coordinate systems
|
77 | // -------------------
|
78 | // All of the axis modules have been included in the
|
79 | // coordinate system module below, do not need to
|
80 | // make extra import.
|
81 | // `cartesian` coordinate system. For some historical
|
82 | // reasons, it is named as grid, for example:
|
83 | // chart.setOption({
|
84 | // grid: {...},
|
85 | // xAxis: {...},
|
86 | // yAxis: {...},
|
87 | // series: [{...}]
|
88 | // });
|
89 |
|
90 | use(GridComponent); // `polar` coordinate system, for example:
|
91 | // chart.setOption({
|
92 | // polar: {...},
|
93 | // radiusAxis: {...},
|
94 | // angleAxis: {...},
|
95 | // series: [{
|
96 | // coordinateSystem: 'polar'
|
97 | // }]
|
98 | // });
|
99 |
|
100 | use(PolarComponent); // `geo` coordinate system, for example:
|
101 | // chart.setOption({
|
102 | // geo: {...},
|
103 | // series: [{
|
104 | // coordinateSystem: 'geo'
|
105 | // }]
|
106 | // });
|
107 |
|
108 | use(GeoComponent); // `singleAxis` coordinate system (notice, it is a coordinate system
|
109 | // with only one axis, work for chart like theme river), for example:
|
110 | // chart.setOption({
|
111 | // singleAxis: {...}
|
112 | // series: [{type: 'themeRiver', ...}]
|
113 | // });
|
114 |
|
115 | use(SingleAxisComponent); // `parallel` coordinate system, only work for parallel series, for example:
|
116 | // chart.setOption({
|
117 | // parallel: {...},
|
118 | // parallelAxis: [{...}, ...],
|
119 | // series: [{
|
120 | // type: 'parallel'
|
121 | // }]
|
122 | // });
|
123 |
|
124 | use(ParallelComponent); // `calendar` coordinate system. for example,
|
125 | // chart.setOptionp({
|
126 | // calendar: {...},
|
127 | // series: [{
|
128 | // coordinateSystem: 'calendar'
|
129 | // }]
|
130 | // );
|
131 |
|
132 | use(CalendarComponent); // ------------------
|
133 | // Other components
|
134 | // ------------------
|
135 | // `graphic` component, for example:
|
136 | // chart.setOption({
|
137 | // graphic: {...}
|
138 | // });
|
139 |
|
140 | use(GraphicComponent); // `toolbox` component, for example:
|
141 | // chart.setOption({
|
142 | // toolbox: {...}
|
143 | // });
|
144 |
|
145 | use(ToolboxComponent); // `tooltip` component, for example:
|
146 | // chart.setOption({
|
147 | // tooltip: {...}
|
148 | // });
|
149 |
|
150 | use(TooltipComponent); // `axisPointer` component, for example:
|
151 | // chart.setOption({
|
152 | // tooltip: {axisPointer: {...}, ...}
|
153 | // });
|
154 | // Or
|
155 | // chart.setOption({
|
156 | // axisPointer: {...}
|
157 | // });
|
158 |
|
159 | use(AxisPointerComponent); // `brush` component, for example:
|
160 | // chart.setOption({
|
161 | // brush: {...}
|
162 | // });
|
163 | // Or
|
164 | // chart.setOption({
|
165 | // tooltip: {feature: {brush: {...}}
|
166 | // })
|
167 |
|
168 | use(BrushComponent); // `title` component, for example:
|
169 | // chart.setOption({
|
170 | // title: {...}
|
171 | // });
|
172 |
|
173 | use(TitleComponent); // `timeline` component, for example:
|
174 | // chart.setOption({
|
175 | // timeline: {...}
|
176 | // });
|
177 |
|
178 | use(TimelineComponent); // `markPoint` component, for example:
|
179 | // chart.setOption({
|
180 | // series: [{markPoint: {...}}]
|
181 | // });
|
182 |
|
183 | use(MarkPointComponent); // `markLine` component, for example:
|
184 | // chart.setOption({
|
185 | // series: [{markLine: {...}}]
|
186 | // });
|
187 |
|
188 | use(MarkLineComponent); // `markArea` component, for example:
|
189 | // chart.setOption({
|
190 | // series: [{markArea: {...}}]
|
191 | // });
|
192 |
|
193 | use(MarkAreaComponent); // `legend` component not scrollable. for example:
|
194 | // chart.setOption({
|
195 | // legend: {...}
|
196 | // });
|
197 |
|
198 | use(LegendComponent); // `dataZoom` component including both `dataZoomInside` and `dataZoomSlider`.
|
199 |
|
200 | use(DataZoomComponent); // `dataZoom` component providing drag, pinch, wheel behaviors
|
201 | // inside coodinate system, for example:
|
202 | // chart.setOption({
|
203 | // dataZoom: {type: 'inside'}
|
204 | // });
|
205 |
|
206 | use(DataZoomInsideComponent); // `dataZoom` component providing a slider bar, for example:
|
207 | // chart.setOption({
|
208 | // dataZoom: {type: 'slider'}
|
209 | // });
|
210 |
|
211 | use(DataZoomSliderComponent); // `visualMap` component including both `visualMapContinuous` and `visualMapPiecewise`.
|
212 |
|
213 | use(VisualMapComponent); // `visualMap` component providing continuous bar, for example:
|
214 | // chart.setOption({
|
215 | // visualMap: {type: 'continuous'}
|
216 | // });
|
217 |
|
218 | use(VisualMapContinuousComponent); // `visualMap` component providing pieces bar, for example:
|
219 | // chart.setOption({
|
220 | // visualMap: {type: 'piecewise'}
|
221 | // });
|
222 |
|
223 | use(VisualMapPiecewiseComponent); // `aria` component providing aria, for example:
|
224 | // chart.setOption({
|
225 | // aria: {...}
|
226 | // });
|
227 |
|
228 | use(AriaComponent); // dataset transform
|
229 | // chart.setOption({
|
230 | // dataset: {
|
231 | // transform: []
|
232 | // }
|
233 | // });
|
234 |
|
235 | use(TransformComponent);
|
236 | use(DatasetComponent); // universal transition
|
237 | // chart.setOption({
|
238 | // series: {
|
239 | // universalTransition: { enabled: true }
|
240 | // }
|
241 | // })
|
242 |
|
243 | use(UniversalTransition); // label layout
|
244 | // chart.setOption({
|
245 | // series: {
|
246 | // labelLayout: { hideOverlap: true }
|
247 | // }
|
248 | // })
|
249 |
|
250 | use(LabelLayout); |
\ | No newline at end of file |