index.js 8.4 KB

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