UNPKG

8.22 kBJavaScriptView Raw
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*/
44import { use } from './lib/extension';
45export * 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
53import { SVGRenderer, CanvasRenderer } from './lib/export/renderers';
54import { 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';
55import { 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';
56import { UniversalTransition, LabelLayout } from './lib/export/features'; // -----------------
57// Render engines
58// -----------------
59// Render via Canvas.
60// echarts.init(dom, null, { renderer: 'canvas' })
61
62use([CanvasRenderer]); // Render via SVG.
63// echarts.init(dom, null, { renderer: 'svg' })
64
65use([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
75use([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
90use(GridComponent); // `polar` coordinate system, for example:
91// chart.setOption({
92// polar: {...},
93// radiusAxis: {...},
94// angleAxis: {...},
95// series: [{
96// coordinateSystem: 'polar'
97// }]
98// });
99
100use(PolarComponent); // `geo` coordinate system, for example:
101// chart.setOption({
102// geo: {...},
103// series: [{
104// coordinateSystem: 'geo'
105// }]
106// });
107
108use(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
115use(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
124use(ParallelComponent); // `calendar` coordinate system. for example,
125// chart.setOptionp({
126// calendar: {...},
127// series: [{
128// coordinateSystem: 'calendar'
129// }]
130// );
131
132use(CalendarComponent); // ------------------
133// Other components
134// ------------------
135// `graphic` component, for example:
136// chart.setOption({
137// graphic: {...}
138// });
139
140use(GraphicComponent); // `toolbox` component, for example:
141// chart.setOption({
142// toolbox: {...}
143// });
144
145use(ToolboxComponent); // `tooltip` component, for example:
146// chart.setOption({
147// tooltip: {...}
148// });
149
150use(TooltipComponent); // `axisPointer` component, for example:
151// chart.setOption({
152// tooltip: {axisPointer: {...}, ...}
153// });
154// Or
155// chart.setOption({
156// axisPointer: {...}
157// });
158
159use(AxisPointerComponent); // `brush` component, for example:
160// chart.setOption({
161// brush: {...}
162// });
163// Or
164// chart.setOption({
165// tooltip: {feature: {brush: {...}}
166// })
167
168use(BrushComponent); // `title` component, for example:
169// chart.setOption({
170// title: {...}
171// });
172
173use(TitleComponent); // `timeline` component, for example:
174// chart.setOption({
175// timeline: {...}
176// });
177
178use(TimelineComponent); // `markPoint` component, for example:
179// chart.setOption({
180// series: [{markPoint: {...}}]
181// });
182
183use(MarkPointComponent); // `markLine` component, for example:
184// chart.setOption({
185// series: [{markLine: {...}}]
186// });
187
188use(MarkLineComponent); // `markArea` component, for example:
189// chart.setOption({
190// series: [{markArea: {...}}]
191// });
192
193use(MarkAreaComponent); // `legend` component not scrollable. for example:
194// chart.setOption({
195// legend: {...}
196// });
197
198use(LegendComponent); // `dataZoom` component including both `dataZoomInside` and `dataZoomSlider`.
199
200use(DataZoomComponent); // `dataZoom` component providing drag, pinch, wheel behaviors
201// inside coodinate system, for example:
202// chart.setOption({
203// dataZoom: {type: 'inside'}
204// });
205
206use(DataZoomInsideComponent); // `dataZoom` component providing a slider bar, for example:
207// chart.setOption({
208// dataZoom: {type: 'slider'}
209// });
210
211use(DataZoomSliderComponent); // `visualMap` component including both `visualMapContinuous` and `visualMapPiecewise`.
212
213use(VisualMapComponent); // `visualMap` component providing continuous bar, for example:
214// chart.setOption({
215// visualMap: {type: 'continuous'}
216// });
217
218use(VisualMapContinuousComponent); // `visualMap` component providing pieces bar, for example:
219// chart.setOption({
220// visualMap: {type: 'piecewise'}
221// });
222
223use(VisualMapPiecewiseComponent); // `aria` component providing aria, for example:
224// chart.setOption({
225// aria: {...}
226// });
227
228use(AriaComponent); // dataset transform
229// chart.setOption({
230// dataset: {
231// transform: []
232// }
233// });
234
235use(TransformComponent);
236use(DatasetComponent); // universal transition
237// chart.setOption({
238// series: {
239// universalTransition: { enabled: true }
240// }
241// })
242
243use(UniversalTransition); // label layout
244// chart.setOption({
245// series: {
246// labelLayout: { hideOverlap: true }
247// }
248// })
249
250use(LabelLayout);
\No newline at end of file