index.js 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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. // All of the modules that are allowed to be
  43. // imported are listed below.
  44. //
  45. // Users MUST NOT import other modules that are
  46. // not included in this list.
  47. // ----------------------------------------------
  48. import { SVGRenderer, CanvasRenderer } from './lib/export/renderers.js';
  49. 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.js';
  50. 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.js';
  51. import { UniversalTransition, LabelLayout } from './lib/export/features.js'; // -----------------
  52. // Render engines
  53. // -----------------
  54. // Render via Canvas.
  55. // echarts.init(dom, null, { renderer: 'canvas' })
  56. use([CanvasRenderer]); // Render via SVG.
  57. // echarts.init(dom, null, { renderer: 'svg' })
  58. use([SVGRenderer]); // ----------------
  59. // Charts (series)
  60. // ----------------
  61. // All of the series types, for example:
  62. // chart.setOption({
  63. // series: [{
  64. // type: 'line' // or 'bar', 'pie', ...
  65. // }]
  66. // });
  67. use([LineChart, BarChart, PieChart, ScatterChart, RadarChart, MapChart, TreeChart, TreemapChart, GraphChart, GaugeChart, FunnelChart, ParallelChart, SankeyChart, BoxplotChart, CandlestickChart, EffectScatterChart, LinesChart, HeatmapChart, PictorialBarChart, ThemeRiverChart, SunburstChart, CustomChart]); // -------------------
  68. // Coordinate systems
  69. // -------------------
  70. // All of the axis modules have been included in the
  71. // coordinate system module below, do not need to
  72. // make extra import.
  73. // `cartesian` coordinate system. For some historical
  74. // reasons, it is named as grid, for example:
  75. // chart.setOption({
  76. // grid: {...},
  77. // xAxis: {...},
  78. // yAxis: {...},
  79. // series: [{...}]
  80. // });
  81. use(GridComponent); // `polar` coordinate system, for example:
  82. // chart.setOption({
  83. // polar: {...},
  84. // radiusAxis: {...},
  85. // angleAxis: {...},
  86. // series: [{
  87. // coordinateSystem: 'polar'
  88. // }]
  89. // });
  90. use(PolarComponent); // `geo` coordinate system, for example:
  91. // chart.setOption({
  92. // geo: {...},
  93. // series: [{
  94. // coordinateSystem: 'geo'
  95. // }]
  96. // });
  97. use(GeoComponent); // `singleAxis` coordinate system (notice, it is a coordinate system
  98. // with only one axis, work for chart like theme river), for example:
  99. // chart.setOption({
  100. // singleAxis: {...}
  101. // series: [{type: 'themeRiver', ...}]
  102. // });
  103. use(SingleAxisComponent); // `parallel` coordinate system, only work for parallel series, for example:
  104. // chart.setOption({
  105. // parallel: {...},
  106. // parallelAxis: [{...}, ...],
  107. // series: [{
  108. // type: 'parallel'
  109. // }]
  110. // });
  111. use(ParallelComponent); // `calendar` coordinate system. for example,
  112. // chart.setOption({
  113. // calendar: {...},
  114. // series: [{
  115. // coordinateSystem: 'calendar'
  116. // }]
  117. // );
  118. use(CalendarComponent); // ------------------
  119. // Other components
  120. // ------------------
  121. // `graphic` component, for example:
  122. // chart.setOption({
  123. // graphic: {...}
  124. // });
  125. use(GraphicComponent); // `toolbox` component, for example:
  126. // chart.setOption({
  127. // toolbox: {...}
  128. // });
  129. use(ToolboxComponent); // `tooltip` component, for example:
  130. // chart.setOption({
  131. // tooltip: {...}
  132. // });
  133. use(TooltipComponent); // `axisPointer` component, for example:
  134. // chart.setOption({
  135. // tooltip: {axisPointer: {...}, ...}
  136. // });
  137. // Or
  138. // chart.setOption({
  139. // axisPointer: {...}
  140. // });
  141. use(AxisPointerComponent); // `brush` component, for example:
  142. // chart.setOption({
  143. // brush: {...}
  144. // });
  145. // Or
  146. // chart.setOption({
  147. // tooltip: {feature: {brush: {...}}
  148. // })
  149. use(BrushComponent); // `title` component, for example:
  150. // chart.setOption({
  151. // title: {...}
  152. // });
  153. use(TitleComponent); // `timeline` component, for example:
  154. // chart.setOption({
  155. // timeline: {...}
  156. // });
  157. use(TimelineComponent); // `markPoint` component, for example:
  158. // chart.setOption({
  159. // series: [{markPoint: {...}}]
  160. // });
  161. use(MarkPointComponent); // `markLine` component, for example:
  162. // chart.setOption({
  163. // series: [{markLine: {...}}]
  164. // });
  165. use(MarkLineComponent); // `markArea` component, for example:
  166. // chart.setOption({
  167. // series: [{markArea: {...}}]
  168. // });
  169. use(MarkAreaComponent); // `legend` component not scrollable. for example:
  170. // chart.setOption({
  171. // legend: {...}
  172. // });
  173. use(LegendComponent); // `dataZoom` component including both `dataZoomInside` and `dataZoomSlider`.
  174. use(DataZoomComponent); // `dataZoom` component providing drag, pinch, wheel behaviors
  175. // inside coordinate system, for example:
  176. // chart.setOption({
  177. // dataZoom: {type: 'inside'}
  178. // });
  179. use(DataZoomInsideComponent); // `dataZoom` component providing a slider bar, for example:
  180. // chart.setOption({
  181. // dataZoom: {type: 'slider'}
  182. // });
  183. use(DataZoomSliderComponent); // `visualMap` component including both `visualMapContinuous` and `visualMapPiecewise`.
  184. use(VisualMapComponent); // `visualMap` component providing continuous bar, for example:
  185. // chart.setOption({
  186. // visualMap: {type: 'continuous'}
  187. // });
  188. use(VisualMapContinuousComponent); // `visualMap` component providing pieces bar, for example:
  189. // chart.setOption({
  190. // visualMap: {type: 'piecewise'}
  191. // });
  192. use(VisualMapPiecewiseComponent); // `aria` component providing aria, for example:
  193. // chart.setOption({
  194. // aria: {...}
  195. // });
  196. use(AriaComponent); // dataset transform
  197. // chart.setOption({
  198. // dataset: {
  199. // transform: []
  200. // }
  201. // });
  202. use(TransformComponent);
  203. use(DatasetComponent); // universal transition
  204. // chart.setOption({
  205. // series: {
  206. // universalTransition: { enabled: true }
  207. // }
  208. // })
  209. use(UniversalTransition); // label layout
  210. // chart.setOption({
  211. // series: {
  212. // labelLayout: { hideOverlap: true }
  213. // }
  214. // })
  215. use(LabelLayout);