echarts 4.5.0 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/.DS_Store +0 -0
  2. package/.gitattributes +3 -0
  3. package/.github/pull_request_template.md +66 -0
  4. package/.github/workflows/nodejs.yml +15 -3
  5. package/.huskyrc +5 -0
  6. package/CONTRIBUTING.md +16 -160
  7. package/NOTICE +1 -1
  8. package/README.md +3 -3
  9. package/asset/.DS_Store +0 -0
  10. package/build/.DS_Store +0 -0
  11. package/dist/echarts-en.common.js +3072 -1261
  12. package/dist/echarts-en.common.min.js +1 -1
  13. package/dist/echarts-en.js +4339 -1685
  14. package/dist/echarts-en.js.map +1 -1
  15. package/dist/echarts-en.min.js +1 -1
  16. package/dist/echarts-en.simple.js +2496 -1011
  17. package/dist/echarts-en.simple.min.js +1 -1
  18. package/dist/echarts.common.js +3046 -1261
  19. package/dist/echarts.common.min.js +1 -1
  20. package/dist/echarts.js +4313 -1685
  21. package/dist/echarts.js.map +1 -1
  22. package/dist/echarts.min.js +1 -1
  23. package/dist/echarts.simple.js +2470 -1011
  24. package/dist/echarts.simple.min.js +1 -1
  25. package/dist/extension/bmap.js +33 -11
  26. package/dist/extension/bmap.js.map +1 -1
  27. package/dist/extension/bmap.min.js +1 -1
  28. package/dist/extension/dataTool.js.map +1 -1
  29. package/extension/.DS_Store +0 -0
  30. package/extension/bmap/BMapCoordSys.js +14 -4
  31. package/extension/bmap/BMapModel.js +4 -0
  32. package/extension/bmap/BMapView.js +18 -10
  33. package/extension-src/bmap/BMapCoordSys.js +14 -4
  34. package/extension-src/bmap/BMapModel.js +6 -1
  35. package/extension-src/bmap/BMapView.js +16 -9
  36. package/lib/chart/bar/BarSeries.js +14 -1
  37. package/lib/chart/bar/BarView.js +196 -18
  38. package/lib/chart/bar/BaseBarSeries.js +3 -1
  39. package/lib/chart/bar/PictorialBarSeries.js +1 -1
  40. package/lib/chart/candlestick/candlestickVisual.js +1 -1
  41. package/lib/chart/effectScatter/EffectScatterSeries.js +3 -1
  42. package/lib/chart/funnel/FunnelSeries.js +14 -5
  43. package/lib/chart/funnel/funnelLayout.js +162 -46
  44. package/lib/chart/gauge/GaugeSeries.js +0 -2
  45. package/lib/chart/graph/GraphSeries.js +23 -7
  46. package/lib/chart/graph/GraphView.js +30 -12
  47. package/lib/chart/graph/circularLayoutHelper.js +8 -2
  48. package/lib/chart/graph/forceLayout.js +6 -1
  49. package/lib/chart/graph/simpleLayout.js +1 -1
  50. package/lib/chart/graph/simpleLayoutHelper.js +10 -4
  51. package/lib/chart/heatmap/HeatmapView.js +4 -4
  52. package/lib/chart/helper/EffectLine.js +23 -1
  53. package/lib/chart/helper/EffectSymbol.js +2 -1
  54. package/lib/chart/helper/Line.js +129 -42
  55. package/lib/chart/helper/LineDraw.js +5 -1
  56. package/lib/chart/helper/Symbol.js +2 -3
  57. package/lib/chart/helper/createClipPathFromCoordSys.js +4 -1
  58. package/lib/chart/helper/createListFromArray.js +14 -8
  59. package/lib/chart/helper/createRenderPlanner.js +6 -3
  60. package/lib/chart/helper/multipleGraphEdgeHelper.js +258 -0
  61. package/lib/chart/helper/whiskerBoxCommon.js +22 -16
  62. package/lib/chart/line/LineSeries.js +3 -1
  63. package/lib/chart/line/LineView.js +41 -2
  64. package/lib/chart/lines/LinesSeries.js +0 -2
  65. package/lib/chart/map/MapSeries.js +14 -5
  66. package/lib/chart/pie/PieSeries.js +27 -6
  67. package/lib/chart/pie/PieView.js +22 -15
  68. package/lib/chart/pie/labelLayout.js +102 -19
  69. package/lib/chart/pie/pieLayout.js +19 -7
  70. package/lib/chart/radar/RadarSeries.js +27 -6
  71. package/lib/chart/radar/RadarView.js +3 -1
  72. package/lib/chart/sankey/SankeySeries.js +13 -1
  73. package/lib/chart/sankey/SankeyView.js +70 -32
  74. package/lib/chart/sankey/sankeyLayout.js +22 -3
  75. package/lib/chart/scatter/ScatterSeries.js +3 -1
  76. package/lib/chart/sunburst/SunburstPiece.js +5 -1
  77. package/lib/chart/sunburst/SunburstSeries.js +29 -12
  78. package/lib/chart/sunburst/SunburstView.js +5 -1
  79. package/lib/chart/themeRiver/ThemeRiverSeries.js +24 -33
  80. package/lib/chart/tree/TreeSeries.js +20 -3
  81. package/lib/chart/tree/TreeView.js +149 -23
  82. package/lib/chart/treemap/TreemapSeries.js +25 -4
  83. package/lib/chart/treemap/TreemapView.js +80 -38
  84. package/lib/chart/treemap/treemapLayout.js +1 -1
  85. package/lib/chart/treemap/treemapVisual.js +9 -15
  86. package/lib/component/axis/AngleAxisView.js +64 -7
  87. package/lib/component/axis/AxisBuilder.js +62 -24
  88. package/lib/component/axis/CartesianAxisView.js +52 -85
  89. package/lib/component/axis/RadiusAxisView.js +36 -4
  90. package/lib/component/axis/SingleAxisView.js +21 -6
  91. package/lib/component/axis/axisSplitHelper.js +132 -0
  92. package/lib/component/axisPointer/axisTrigger.js +1 -1
  93. package/lib/component/brush/BrushView.js +11 -1
  94. package/lib/component/brush/visualEncoding.js +13 -2
  95. package/lib/component/dataZoom/SliderZoomView.js +4 -10
  96. package/lib/component/helper/BrushController.js +33 -43
  97. package/lib/component/helper/MapDraw.js +30 -4
  98. package/lib/component/legend/LegendModel.js +3 -3
  99. package/lib/component/legend/LegendView.js +17 -13
  100. package/lib/component/legend/ScrollableLegendView.js +18 -18
  101. package/lib/component/marker/MarkAreaView.js +53 -15
  102. package/lib/component/marker/MarkLineModel.js +2 -1
  103. package/lib/component/marker/MarkLineView.js +3 -0
  104. package/lib/component/marker/MarkPointView.js +8 -1
  105. package/lib/component/marker/MarkerModel.js +3 -2
  106. package/lib/component/marker/markerHelper.js +7 -4
  107. package/lib/component/timeline/SliderTimelineView.js +7 -1
  108. package/lib/component/title.js +6 -2
  109. package/lib/component/toolbox/ToolboxView.js +5 -1
  110. package/lib/component/toolbox/feature/DataView.js +23 -8
  111. package/lib/component/toolbox/feature/DataZoom.js +6 -6
  112. package/lib/component/toolbox/feature/MagicType.js +20 -14
  113. package/lib/component/toolbox/feature/SaveAsImage.js +4 -2
  114. package/lib/component/tooltip/TooltipContent.js +101 -30
  115. package/lib/component/tooltip/TooltipRichContent.js +56 -8
  116. package/lib/component/tooltip/TooltipView.js +11 -12
  117. package/lib/component/visualMap/PiecewiseModel.js +3 -6
  118. package/lib/component/visualMap/VisualMapModel.js +1 -1
  119. package/lib/coord/Axis.js +30 -2
  120. package/lib/coord/View.js +9 -0
  121. package/lib/coord/axisDefault.js +22 -3
  122. package/lib/coord/axisHelper.js +24 -18
  123. package/lib/coord/calendar/Calendar.js +8 -4
  124. package/lib/coord/geo/GeoModel.js +2 -1
  125. package/lib/coord/geo/geoJSONLoader.js +3 -2
  126. package/lib/coord/geo/geoSourceManager.js +3 -2
  127. package/lib/coord/geo/parseGeoJson.js +3 -2
  128. package/lib/coord/radar/Radar.js +5 -5
  129. package/lib/data/DataDimensionInfo.js +157 -0
  130. package/lib/data/Graph.js +1 -6
  131. package/lib/data/List.js +26 -20
  132. package/lib/data/Tree.js +5 -42
  133. package/lib/data/helper/completeDimensions.js +43 -32
  134. package/lib/data/helper/createDimensions.js +2 -0
  135. package/lib/data/helper/sourceHelper.js +214 -114
  136. package/lib/echarts.js +57 -34
  137. package/lib/langEN.js +26 -0
  138. package/lib/layout/barGrid.js +19 -13
  139. package/lib/layout/barPolar.js +1 -6
  140. package/lib/loading/default.js +43 -27
  141. package/lib/model/Series.js +4 -4
  142. package/lib/model/referHelper.js +40 -12
  143. package/lib/processor/dataSample.js +1 -1
  144. package/lib/scale/Interval.js +87 -2
  145. package/lib/scale/Log.js +9 -2
  146. package/lib/scale/helper.js +1 -43
  147. package/lib/stream/Scheduler.js +10 -2
  148. package/lib/theme/dark.js +3 -0
  149. package/lib/util/format.js +19 -2
  150. package/lib/util/graphic.js +14 -12
  151. package/lib/visual/LegendVisualProvider.js +75 -0
  152. package/lib/visual/VisualMapping.js +1 -1
  153. package/lib/visual/dataColor.js +2 -12
  154. package/lib/visual/seriesColor.js +15 -7
  155. package/lib/visual/symbol.js +12 -2
  156. package/map/.DS_Store +0 -0
  157. package/map/js/.DS_Store +0 -0
  158. package/map/js/china.js +1 -1
  159. package/map/js/province/.DS_Store +0 -0
  160. package/map/js/province/chongqing.js +1 -1
  161. package/map/js/province/gansu.js +2 -2
  162. package/map/js/province/tianjin.js +1 -28
  163. package/map/json/.DS_Store +0 -0
  164. package/map/json/china.json +1 -1
  165. package/map/json/province/chongqing.json +1 -1
  166. package/map/json/province/tianjin.json +1 -1
  167. package/package.json +12 -6
  168. package/src/.DS_Store +0 -0
  169. package/src/chart/.DS_Store +0 -0
  170. package/src/chart/bar/BarSeries.js +15 -1
  171. package/src/chart/bar/BarView.js +198 -17
  172. package/src/chart/bar/BaseBarSeries.js +1 -1
  173. package/src/chart/bar/PictorialBarSeries.js +2 -2
  174. package/src/chart/candlestick/candlestickVisual.js +1 -1
  175. package/src/chart/effectScatter/EffectScatterSeries.js +1 -1
  176. package/src/chart/funnel/FunnelSeries.js +11 -4
  177. package/src/chart/funnel/funnelLayout.js +179 -53
  178. package/src/chart/gauge/GaugeSeries.js +0 -1
  179. package/src/chart/graph/GraphSeries.js +19 -7
  180. package/src/chart/graph/GraphView.js +28 -10
  181. package/src/chart/graph/circularLayoutHelper.js +8 -2
  182. package/src/chart/graph/forceLayout.js +7 -1
  183. package/src/chart/graph/simpleLayout.js +1 -1
  184. package/src/chart/graph/simpleLayoutHelper.js +12 -5
  185. package/src/chart/heatmap/HeatmapView.js +4 -4
  186. package/src/chart/helper/EffectLine.js +23 -1
  187. package/src/chart/helper/EffectSymbol.js +2 -1
  188. package/src/chart/helper/Line.js +122 -37
  189. package/src/chart/helper/LineDraw.js +5 -1
  190. package/src/chart/helper/Symbol.js +4 -4
  191. package/src/chart/helper/createClipPathFromCoordSys.js +4 -0
  192. package/src/chart/helper/createGraphFromNodeEdge.js +2 -1
  193. package/src/chart/helper/createListFromArray.js +13 -8
  194. package/src/chart/helper/createRenderPlanner.js +5 -2
  195. package/src/chart/helper/multipleGraphEdgeHelper.js +229 -0
  196. package/src/chart/helper/whiskerBoxCommon.js +21 -16
  197. package/src/chart/line/LineSeries.js +1 -1
  198. package/src/chart/line/LineView.js +45 -1
  199. package/src/chart/lines/LinesSeries.js +1 -3
  200. package/src/chart/map/MapSeries.js +11 -5
  201. package/src/chart/pie/PieSeries.js +26 -5
  202. package/src/chart/pie/PieView.js +20 -15
  203. package/src/chart/pie/labelLayout.js +114 -22
  204. package/src/chart/pie/pieLayout.js +20 -7
  205. package/src/chart/radar/RadarSeries.js +31 -6
  206. package/src/chart/radar/RadarView.js +4 -2
  207. package/src/chart/sankey/SankeySeries.js +12 -1
  208. package/src/chart/sankey/SankeyView.js +75 -30
  209. package/src/chart/sankey/sankeyLayout.js +25 -5
  210. package/src/chart/scatter/ScatterSeries.js +1 -1
  211. package/src/chart/sunburst/SunburstPiece.js +7 -1
  212. package/src/chart/sunburst/SunburstSeries.js +28 -15
  213. package/src/chart/sunburst/SunburstView.js +2 -1
  214. package/src/chart/themeRiver/ThemeRiverSeries.js +25 -30
  215. package/src/chart/tree/TreeSeries.js +19 -6
  216. package/src/chart/tree/TreeView.js +156 -23
  217. package/src/chart/treemap/TreemapSeries.js +23 -5
  218. package/src/chart/treemap/TreemapView.js +77 -41
  219. package/src/chart/treemap/treemapLayout.js +2 -2
  220. package/src/chart/treemap/treemapVisual.js +8 -25
  221. package/src/component/axis/AngleAxisView.js +75 -7
  222. package/src/component/axis/AxisBuilder.js +77 -32
  223. package/src/component/axis/CartesianAxisView.js +47 -83
  224. package/src/component/axis/RadiusAxisView.js +37 -4
  225. package/src/component/axis/SingleAxisView.js +21 -4
  226. package/src/component/axis/axisSplitHelper.js +114 -0
  227. package/src/component/axisPointer/axisTrigger.js +1 -1
  228. package/src/component/brush/BrushView.js +8 -1
  229. package/src/component/brush/visualEncoding.js +6 -3
  230. package/src/component/dataZoom/SliderZoomView.js +4 -9
  231. package/src/component/helper/BrushController.js +40 -47
  232. package/src/component/helper/MapDraw.js +27 -4
  233. package/src/component/legend/LegendModel.js +3 -3
  234. package/src/component/legend/LegendView.js +18 -12
  235. package/src/component/legend/ScrollableLegendView.js +18 -16
  236. package/src/component/marker/MarkAreaView.js +53 -15
  237. package/src/component/marker/MarkLineModel.js +2 -1
  238. package/src/component/marker/MarkLineView.js +3 -1
  239. package/src/component/marker/MarkPointView.js +7 -1
  240. package/src/component/marker/MarkerModel.js +3 -2
  241. package/src/component/marker/markerHelper.js +8 -5
  242. package/src/component/timeline/SliderTimelineView.js +9 -6
  243. package/src/component/title.js +4 -3
  244. package/src/component/toolbox/.DS_Store +0 -0
  245. package/src/component/toolbox/ToolboxView.js +5 -0
  246. package/src/component/toolbox/feature/DataView.js +20 -8
  247. package/src/component/toolbox/feature/DataZoom.js +6 -6
  248. package/src/component/toolbox/feature/MagicType.js +19 -13
  249. package/src/component/toolbox/feature/SaveAsImage.js +4 -2
  250. package/src/component/tooltip/TooltipContent.js +94 -28
  251. package/src/component/tooltip/TooltipRichContent.js +52 -9
  252. package/src/component/tooltip/TooltipView.js +14 -12
  253. package/src/component/visualMap/PiecewiseModel.js +5 -9
  254. package/src/component/visualMap/VisualMapModel.js +1 -1
  255. package/src/coord/Axis.js +29 -2
  256. package/src/coord/View.js +10 -1
  257. package/src/coord/axisDefault.js +26 -2
  258. package/src/coord/axisHelper.js +30 -21
  259. package/src/coord/calendar/Calendar.js +12 -5
  260. package/src/coord/geo/GeoModel.js +3 -6
  261. package/src/coord/geo/geoJSONLoader.js +3 -2
  262. package/src/coord/geo/geoSourceManager.js +3 -2
  263. package/src/coord/geo/parseGeoJson.js +3 -2
  264. package/src/coord/radar/Radar.js +6 -8
  265. package/src/data/DataDimensionInfo.js +135 -0
  266. package/src/data/Graph.js +0 -5
  267. package/src/data/List.js +30 -17
  268. package/src/data/Tree.js +6 -39
  269. package/src/data/helper/completeDimensions.js +49 -30
  270. package/src/data/helper/createDimensions.js +2 -0
  271. package/src/data/helper/sourceHelper.js +216 -124
  272. package/src/echarts.js +60 -36
  273. package/src/langEN.js +26 -0
  274. package/src/layout/barGrid.js +22 -10
  275. package/src/layout/barPolar.js +4 -6
  276. package/src/loading/default.js +46 -34
  277. package/src/model/.DS_Store +0 -0
  278. package/src/model/Series.js +4 -4
  279. package/src/model/referHelper.js +34 -11
  280. package/src/preprocessor/.DS_Store +0 -0
  281. package/src/processor/dataSample.js +1 -1
  282. package/src/scale/Interval.js +84 -4
  283. package/src/scale/Log.js +9 -2
  284. package/src/scale/helper.js +1 -39
  285. package/src/stream/Scheduler.js +9 -1
  286. package/src/theme/dark.js +3 -0
  287. package/src/util/.DS_Store +0 -0
  288. package/src/util/format.js +17 -1
  289. package/src/util/graphic.js +13 -11
  290. package/src/visual/LegendVisualProvider.js +55 -0
  291. package/src/visual/VisualMapping.js +1 -1
  292. package/src/visual/dataColor.js +0 -13
  293. package/src/visual/seriesColor.js +13 -7
  294. package/src/visual/symbol.js +11 -2
  295. package/theme/.DS_Store +0 -0
  296. package/theme/azul.js +163 -0
  297. package/theme/bee-inspired.js +178 -0
  298. package/theme/blue.js +178 -0
  299. package/theme/caravan.js +178 -0
  300. package/theme/carp.js +163 -0
  301. package/theme/cool.js +180 -0
  302. package/theme/dark-blue.js +168 -0
  303. package/theme/dark-bold.js +168 -0
  304. package/theme/dark-digerati.js +168 -0
  305. package/theme/dark-fresh-cut.js +168 -0
  306. package/theme/dark-mushroom.js +168 -0
  307. package/theme/dark.js +69 -62
  308. package/theme/eduardo.js +178 -0
  309. package/theme/forest.js +163 -0
  310. package/theme/fresh-cut.js +163 -0
  311. package/theme/fruit.js +178 -0
  312. package/theme/gray.js +220 -0
  313. package/theme/green.js +222 -0
  314. package/theme/helianthus.js +263 -0
  315. package/theme/infographic.js +72 -57
  316. package/theme/inspired.js +163 -0
  317. package/theme/jazz.js +163 -0
  318. package/theme/london.js +163 -0
  319. package/theme/macarons.js +80 -57
  320. package/theme/macarons2.js +251 -0
  321. package/theme/mint.js +155 -0
  322. package/theme/red-velvet.js +163 -0
  323. package/theme/red.js +225 -0
  324. package/theme/roma.js +55 -22
  325. package/theme/royal.js +163 -0
  326. package/theme/sakura.js +140 -0
  327. package/theme/shine.js +52 -45
  328. package/theme/tech-blue.js +180 -0
  329. package/theme/vintage.js +37 -23
package/.DS_Store ADDED
Binary file
package/.gitattributes ADDED
@@ -0,0 +1,3 @@
1
+ # for pull request size bot
2
+ # excludes all files from test directory
3
+ test/** linguist-generated=true
@@ -0,0 +1,66 @@
1
+ <!-- Please fill in the following information to help us review your PR more efficiently. -->
2
+
3
+ ## Brief Information
4
+
5
+ This pull request is in the type of:
6
+
7
+ - [ ] bug fixing
8
+ - [ ] new feature
9
+ - [ ] others
10
+
11
+
12
+
13
+ ### What does this PR do?
14
+
15
+ <!-- USE ONCE SENTENCE TO DESCRIBE WHAT THIS PR DOES. -->
16
+
17
+
18
+
19
+ ### Fixed issues
20
+
21
+ <!--
22
+ - #xxxx: ...
23
+ -->
24
+
25
+
26
+ ## Details
27
+
28
+ ### Before: What was the problem?
29
+
30
+ <!-- DESCRIBE THE BUG OR REQUIREMENT HERE. -->
31
+
32
+ <!-- ADD SCREENSHOT HERE IF APPLICABLE. -->
33
+
34
+
35
+
36
+ ### After: How is it fixed in this PR?
37
+
38
+ <!-- THE RESULT AFTER FIXING AND A SIMPLE EXPLANATION ABOUT HOW IT IS FIXED. -->
39
+
40
+ <!-- ADD SCREENSHOT HERE IF APPLICABLE. -->
41
+
42
+
43
+
44
+ ## Usage
45
+
46
+ ### Are there any API changes?
47
+
48
+ - [ ] The API has been changed.
49
+
50
+ <!-- LIST THE API CHANGES HERE -->
51
+
52
+
53
+
54
+ ### Related test cases or examples to use the new APIs
55
+
56
+ NA.
57
+
58
+
59
+
60
+ ## Others
61
+
62
+ ### Merging options
63
+
64
+ - [ ] Please squash the commits into a single one when merge.
65
+
66
+ ### Other information
@@ -1,6 +1,8 @@
1
1
  name: Node CI
2
2
 
3
- on: [push]
3
+ on:
4
+ pull_request:
5
+ types: [opened, synchronize]
4
6
 
5
7
  jobs:
6
8
  build:
@@ -21,11 +23,21 @@ jobs:
21
23
  run: |
22
24
  npm install
23
25
  npm install -g jshint
26
+ npm install git+https://github.com/ecomfe/zrender.git
27
+ - name: build zrender
28
+ run: |
29
+ cd node_modules/zrender
30
+ npm install
31
+ npm run prepublish
32
+ cd ../..
24
33
  - name: jshint
25
34
  run: |
26
35
  jshint
27
- - name: build
36
+ - name: build release
28
37
  run: |
29
- node build/build.js
38
+ npm run release
30
39
  env:
31
40
  CI: true
41
+ - name: unit test
42
+ run: |
43
+ npm run test
package/.huskyrc ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "hooks": {
3
+ "pre-commit": "npm run lint",
4
+ }
5
+ }
package/CONTRIBUTING.md CHANGED
@@ -2,7 +2,20 @@
2
2
 
3
3
  👍🎉 First off, thanks for taking the time to contribute! 🎉👍
4
4
 
5
- Please check out the [Apache Code of Conduct](https://www.apache.org/foundation/policies/conduct.html).
5
+ Please check out the [Apache Code of Conduct](https://www.apache.org/foundation/policies/conduct.html) first.
6
+
7
+ ## What can you do for the ECharts community?
8
+
9
+ Contributions can be made in varied ways:
10
+
11
+ - Help others in the issues
12
+ - Help solve problems with the issues
13
+ - Remind the authors to provide a demo if they are reporting for a bug
14
+ - Try to reproduce the problem as describe in the issues
15
+ - Make pull requests to fix bugs or implement new features
16
+ - Mend or translate the documents
17
+ - Discuss in the [mailing list](https://echarts.apache.org/en/maillist.html)
18
+ - ...
6
19
 
7
20
  ## Issues
8
21
 
@@ -26,168 +39,11 @@ About our release plan, we will release a mior version at the end of every month
26
39
 
27
40
  ## Pull Requests
28
41
 
29
- ### Finding Easy Issues to Fix
30
-
31
- You may use [difficulty: easy](https://github.com/apache/incubator-echarts/labels/difficulty%3A%20easy) label to filter issues that we think is easier to fix. These are issues that should be fixed using less time than the average. So if you wish to make some pull requests, this is where you can start with.
32
-
33
- You may also filter with [en](https://github.com/apache/incubator-echarts/issues?q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3Aen) label for English issues only.
34
-
35
- ### Coding Standard
36
-
37
- Please follow the [coding standard](https://echarts.apache.org/en/coding-standard.html) before you make any changes.
38
-
39
- ### Git Message Standard
40
-
41
- (TBD)
42
-
43
- ### Contact Us
44
-
45
- If you wish to fix a bug or add new features but don't know how, please discuss it with us in the [mailing list](dev@echarts.apache.org).
46
-
42
+ Wiki: [How to make a pull request](https://github.com/apache/incubator-echarts/wiki/How-to-make-a-pull-request)
47
43
 
48
44
  ## How to Debug ECharts
49
45
 
50
- The following steps help you to set up a developing environment for ECharts.
51
-
52
-
53
- ### 1. Clone ECharts project
54
-
55
- If you wish to make pull requests, you should **fork the ECharts project** first. Otherwise, just clone it locally.
56
-
57
- ```bash
58
- git clone git@github.com:apache/incubator-echarts.git
59
- ```
60
-
61
- [ZRender](https://github.com/ecomfe/zrender) is the rendering library under the hood. You need to clone it along with ECharts.
62
-
63
- ```bash
64
- git clone git@github.com:ecomfe/zrender.git
65
- ```
66
-
67
- We assume these projects are downloaded at `~/workspace/echarts` and `~/workspace/zrender`. But their locations can be arbitrary.
68
-
69
-
70
- ### 2. Install dependencies
71
-
72
- ```bash
73
- cd ~/workspace/echarts
74
- npm install
75
- cd ~/workspace/zrender
76
- npm install
77
- ```
78
-
79
- Sometimes, in order to fix an issue within echarts, changes have to be made inside the codebase of zrender. To test any changes to zrender locally you can use npm's [npm link](https://docs.npmjs.com/cli/link.html) feature, for example:
80
-
81
- ```bash
82
- cd ~/workspace/zrender
83
- npm link
84
- cd ~/workspace/echarts
85
- npm link zrender
86
- ```
87
-
88
- With this, you can see that `~/workspace/echarts/node_modules/zrender` is a link to `~/workspace/zrender`.
89
-
90
-
91
- ### 3. Run and debug
92
-
93
- To build the ECharts project and watch source file changes (including ZRender project) to rebuild:
94
-
95
- ```bash
96
- cd ~/workspace/echarts
97
- node build/build.js --watch
98
- ```
99
-
100
- To build once:
101
-
102
- ```bash
103
- node build/build.js
104
- ```
105
-
106
- Then, open the test cases under `~/workspace/echarts/test` in Web browser. You can add breakpoints under `src` directory. For example, in Chrome Inspect, it looks like:
107
-
108
- ![Chrome inspect](./asset/contributing-inspect.png)
109
-
110
-
111
- ### 4. Add test cases
112
-
113
- In most cases, one or more test cases should be added when developing a feature or fixing a bug.
114
- All of the existing test cases are in directory `~/workspace/echarts/test`.
115
- Check the file `~/workspace/echarts/test/dataZoom-action.html` as an example.
116
-
117
- **Organize test cases:**
118
- Each file can be regard as a **test suite** and each chart in the file can be regard as a **test case**,
119
- which contains one or multiple expected results (check points).
120
- If a feature or bug is related to a chart type or a component type, probably it should belongs to
121
- a test file named `chartOrComponentType-someSubCategory.html`. Or some common feature is related
122
- to multiple chart or component or has nothing to do with chart and component, probably it should
123
- belongs a test file named `featureName-someSubCateogory.html`.
124
-
125
- **The naming of a test file:**
126
- Generally speaking, the name of the test file should start with a chart type or component type
127
- or a common feature name (like "hoverStyle", "clip").
128
-
129
- **Add a test case:**
130
- If intending to add a test case, firstly try to find in the existing test files which file this
131
- new test case might belongs to.
132
- If an existing file found, add the test case to the file.
133
- Otherwise, add a new test file by commands as follows:
134
-
135
- ```shell
136
- # Make a file named "bar-action.html" in directory "echarts/test" with 1 initial chart.
137
- npm run mktest bar-action
138
- # or `npm run mktest bar-action.html`
139
-
140
- # Make a file named "bar-action.html" in directory "echarts/test" with 5 initial charts.
141
- npm run mktest bar-action 5
142
- ```
143
-
144
- **The expected results and the instructions of user interaction:**
145
- Although we have auto-visual-test tool to run tests, we should better write the expected result
146
- (check points) for each test cases for manual checking.
147
- Some cases need user interactions involved. The instructions should be written clearly.
148
- The expected results and the user instructions should be written in the `title` filed when
149
- creating a test by `testHelper.create` as follows:
150
-
151
- ```js
152
- var chart = testHelper.create(echarts, 'main0', {
153
- title: [
154
- 'Hover on the red circle',
155
- '**A blue label** should appear on the **top of red circle**.'
156
- ],
157
- option: option
158
- });
159
- ```
160
-
161
-
162
- ### 5. Run test cases
163
-
164
- ```bash
165
- # puppeteer is not in the devDependencies and needs to be installed manually
166
- npm install puppeteer --no-save
167
- npm run test:visual
168
- ```
169
-
170
- It will run all the test cases under `~/workspace/echarts/test` automatically to compare with the previous version. You can use this to check if your code bring some breaking change.
171
-
172
-
173
- ### 6. Check the code style
174
-
175
- The code style should follow the [Code Standard](https://echarts.apache.org/en/coding-standard.html).
176
-
177
- It is recommanded to install [eslint](https://eslint.org) plugin to in your IDE to find the invalid code style.
178
- Otherwise, we can also use
179
- ```bash
180
- npm run lint
181
- ```
182
- to check the the code style.
183
-
184
-
185
- ### 7. Make a pull request
186
-
187
- Fork ECharts project into your own project. Checkout a branch from master branch named `fix-xxxx`, where xxxx is the issue id related. If there's no related issue, you need to create one in most cases to describe what's wrong or what new feature is required.
188
-
189
- If you are a committer of apache/incubator-echarts project, which means you have the write access to the project, you still need to push to a new branch (by `git push origin HEAD:refs/heads/fix-xxxx`) and use pull request to push your code. You cannot push code directly to `master` branch, otherwise it will be rejected by GitHub.
190
-
46
+ Wiki: [How to setup the dev environment](https://github.com/apache/incubator-echarts/wiki/How-to-setup-the-dev-environment)
191
47
 
192
48
  ## Some hints about using code from other authors
193
49
 
package/NOTICE CHANGED
@@ -1,5 +1,5 @@
1
1
  Apache ECharts (incubating)
2
- Copyright 2017-2019 The Apache Software Foundation
2
+ Copyright 2017-2020 The Apache Software Foundation
3
3
 
4
4
  This product includes software developed at
5
5
  The Apache Software Foundation (http://www.apache.org/).
package/README.md CHANGED
@@ -9,7 +9,7 @@ ECharts is a free, powerful charting and visualization library offering an easy
9
9
  Now ECharts is an incubator project of Apache Software Foundation.
10
10
  Please check its incubator status [here](http://incubator.apache.org/projects/echarts.html)
11
11
 
12
- **[中文官网](https://echarts.apache.org/zh/index.html)** | **[ENGLISH HOMEPAGE](https://echarts.apache.org/index.html)**
12
+ **[中文官网](https://echarts.apache.org/zh/index.html)** | **[ENGLISH HOMEPAGE](https://echarts.apache.org/en/index.html)**
13
13
 
14
14
  [![Build Status](https://travis-ci.org/apache/incubator-echarts.svg?branch=master)](https://travis-ci.org/apache/incubator-echarts) [![](https://img.shields.io/npm/dw/echarts.svg?label=npm%20downloads&style=flat)](https://www.npmjs.com/package/echarts) [![Last npm release](https://img.shields.io/npm/v/echarts)](https://www.npmjs.com/package/echarts)
15
15
 
@@ -39,7 +39,7 @@ You may choose one of the following methods:
39
39
  ## Get Help
40
40
 
41
41
  + [GitHub Issues](https://github.com/apache/incubator-echarts/issues) for bug report and feature requests
42
- + Email [dev@echarts.apache.org](dev@echarts.apache.org) for general questions
42
+ + Email [dev@echarts.apache.org](mailto:dev@echarts.apache.org) for general questions
43
43
  + Subscribe [mailing list](https://echarts.apache.org/en/maillist.html) to get updated with the project
44
44
 
45
45
  ## Build
@@ -94,7 +94,7 @@ If you wish to debug locally or make pull requests, please refer to [contributin
94
94
 
95
95
  + [Wordcloud 字符云](https://github.com/ecomfe/echarts-wordcloud)
96
96
 
97
- + [Baidu Map 百度地图扩展](https://github.com/apache/incubator-echarts/tree/master/extension/bmap)
97
+ + [Extension for Baidu Map 百度地图扩展](https://github.com/apache/incubator-echarts/tree/master/extension/bmap) An extension provides a wrapper of Baidu Map Service SDK.
98
98
 
99
99
  + [vue-echarts](https://github.com/ecomfe/vue-echarts) ECharts component for Vue.js
100
100
 
Binary file
Binary file