echarts 4.5.0-rc.1 → 4.7.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.
- package/.github/pull_request_template.md +66 -0
- package/.github/workflows/nodejs.yml +12 -2
- package/CONTRIBUTING.md +16 -160
- package/NOTICE +1 -1
- package/README.md +5 -11
- package/dist/echarts-en.common.js +2447 -1047
- package/dist/echarts-en.common.min.js +1 -1
- package/dist/echarts-en.js +3072 -1229
- package/dist/echarts-en.js.map +1 -1
- package/dist/echarts-en.min.js +1 -1
- package/dist/echarts-en.simple.js +2148 -886
- package/dist/echarts-en.simple.min.js +1 -1
- package/dist/echarts.common.js +2447 -1047
- package/dist/echarts.common.min.js +1 -1
- package/dist/echarts.js +3072 -1229
- package/dist/echarts.js.map +1 -1
- package/dist/echarts.min.js +1 -1
- package/dist/echarts.simple.js +2148 -886
- package/dist/echarts.simple.min.js +1 -1
- package/lib/chart/bar/BarSeries.js +14 -1
- package/lib/chart/bar/BarView.js +145 -15
- package/lib/chart/bar/BaseBarSeries.js +3 -1
- package/lib/chart/candlestick/candlestickVisual.js +1 -1
- package/lib/chart/effectScatter/EffectScatterSeries.js +3 -1
- package/lib/chart/funnel/FunnelSeries.js +13 -5
- package/lib/chart/gauge/GaugeSeries.js +0 -2
- package/lib/chart/graph/GraphSeries.js +11 -5
- package/lib/chart/graph/GraphView.js +30 -12
- package/lib/chart/heatmap/HeatmapView.js +4 -4
- package/lib/chart/helper/EffectLine.js +23 -1
- package/lib/chart/helper/Line.js +94 -33
- package/lib/chart/helper/createListFromArray.js +14 -8
- package/lib/chart/helper/createRenderPlanner.js +6 -3
- package/lib/chart/helper/whiskerBoxCommon.js +22 -16
- package/lib/chart/line/LineSeries.js +3 -1
- package/lib/chart/line/LineView.js +8 -2
- package/lib/chart/map/MapSeries.js +8 -1
- package/lib/chart/pie/PieSeries.js +27 -6
- package/lib/chart/pie/PieView.js +2 -2
- package/lib/chart/pie/labelLayout.js +102 -19
- package/lib/chart/pie/pieLayout.js +19 -7
- package/lib/chart/radar/RadarSeries.js +23 -3
- package/lib/chart/sankey/SankeySeries.js +13 -1
- package/lib/chart/sankey/SankeyView.js +70 -32
- package/lib/chart/sankey/sankeyLayout.js +4 -3
- package/lib/chart/scatter/ScatterSeries.js +3 -1
- package/lib/chart/themeRiver/ThemeRiverSeries.js +3 -3
- package/lib/chart/tree/TreeSeries.js +18 -1
- package/lib/chart/tree/TreeView.js +151 -25
- package/lib/chart/treemap/TreemapView.js +57 -27
- package/lib/component/axis/AngleAxisView.js +64 -7
- package/lib/component/axis/AxisBuilder.js +62 -24
- package/lib/component/axis/CartesianAxisView.js +52 -85
- package/lib/component/axis/RadiusAxisView.js +36 -4
- package/lib/component/axis/SingleAxisView.js +21 -6
- package/lib/component/axis/axisSplitHelper.js +132 -0
- package/lib/component/brush/BrushView.js +11 -1
- package/lib/component/brush/visualEncoding.js +13 -2
- package/lib/component/dataZoom/SliderZoomView.js +4 -10
- package/lib/component/helper/BrushController.js +33 -43
- package/lib/component/helper/MapDraw.js +6 -8
- package/lib/component/legend/LegendModel.js +3 -3
- package/lib/component/legend/LegendView.js +17 -13
- package/lib/component/legend/ScrollableLegendView.js +18 -18
- package/lib/component/marker/MarkLineModel.js +2 -1
- package/lib/component/marker/markerHelper.js +7 -4
- package/lib/component/toolbox/ToolboxView.js +5 -1
- package/lib/component/toolbox/feature/MagicType.js +19 -14
- package/lib/component/tooltip/TooltipContent.js +60 -23
- package/lib/component/tooltip/TooltipView.js +6 -7
- package/lib/coord/Axis.js +30 -2
- package/lib/coord/View.js +9 -0
- package/lib/coord/axisDefault.js +21 -2
- package/lib/coord/radar/Radar.js +4 -4
- package/lib/data/DataDimensionInfo.js +157 -0
- package/lib/data/List.js +25 -19
- package/lib/data/Tree.js +2 -1
- package/lib/data/helper/completeDimensions.js +43 -32
- package/lib/data/helper/createDimensions.js +2 -0
- package/lib/data/helper/sourceHelper.js +214 -114
- package/lib/echarts.js +2 -2
- package/lib/layout/barGrid.js +19 -13
- package/lib/layout/barPolar.js +0 -5
- package/lib/model/Series.js +3 -3
- package/lib/model/referHelper.js +40 -12
- package/lib/scale/Interval.js +87 -2
- package/lib/scale/Log.js +9 -2
- package/lib/scale/helper.js +1 -43
- package/lib/stream/Scheduler.js +9 -1
- package/lib/theme/dark.js +3 -0
- package/lib/util/graphic.js +3 -4
- package/lib/visual/LegendVisualProvider.js +75 -0
- package/lib/visual/dataColor.js +2 -12
- package/lib/visual/seriesColor.js +15 -7
- package/map/js/china.js +1 -1
- package/map/js/province/chongqing.js +1 -1
- package/map/js/province/tianjin.js +1 -28
- package/map/json/china.json +1 -1
- package/map/json/province/chongqing.json +1 -1
- package/map/json/province/tianjin.json +1 -1
- package/package.json +11 -6
- package/src/chart/bar/BarSeries.js +15 -1
- package/src/chart/bar/BarView.js +148 -14
- package/src/chart/bar/BaseBarSeries.js +1 -1
- package/src/chart/candlestick/candlestickVisual.js +1 -1
- package/src/chart/effectScatter/EffectScatterSeries.js +1 -1
- package/src/chart/funnel/FunnelSeries.js +10 -4
- package/src/chart/gauge/GaugeSeries.js +0 -1
- package/src/chart/graph/GraphSeries.js +10 -4
- package/src/chart/graph/GraphView.js +28 -10
- package/src/chart/heatmap/HeatmapView.js +4 -4
- package/src/chart/helper/EffectLine.js +23 -1
- package/src/chart/helper/Line.js +84 -26
- package/src/chart/helper/createListFromArray.js +13 -8
- package/src/chart/helper/createRenderPlanner.js +5 -2
- package/src/chart/helper/whiskerBoxCommon.js +21 -16
- package/src/chart/line/LineSeries.js +1 -1
- package/src/chart/line/LineView.js +6 -1
- package/src/chart/map/MapSeries.js +5 -1
- package/src/chart/pie/PieSeries.js +26 -5
- package/src/chart/pie/PieView.js +2 -2
- package/src/chart/pie/labelLayout.js +114 -22
- package/src/chart/pie/pieLayout.js +20 -7
- package/src/chart/radar/RadarSeries.js +27 -3
- package/src/chart/sankey/SankeySeries.js +12 -1
- package/src/chart/sankey/SankeyView.js +75 -30
- package/src/chart/sankey/sankeyLayout.js +4 -3
- package/src/chart/scatter/ScatterSeries.js +1 -1
- package/src/chart/themeRiver/ThemeRiverSeries.js +4 -3
- package/src/chart/tree/TreeSeries.js +17 -1
- package/src/chart/tree/TreeView.js +155 -22
- package/src/chart/treemap/TreemapView.js +57 -27
- package/src/component/axis/AngleAxisView.js +75 -7
- package/src/component/axis/AxisBuilder.js +77 -32
- package/src/component/axis/CartesianAxisView.js +47 -83
- package/src/component/axis/RadiusAxisView.js +37 -4
- package/src/component/axis/SingleAxisView.js +21 -4
- package/src/component/axis/axisSplitHelper.js +114 -0
- package/src/component/brush/BrushView.js +8 -1
- package/src/component/brush/visualEncoding.js +6 -3
- package/src/component/dataZoom/SliderZoomView.js +4 -9
- package/src/component/helper/BrushController.js +40 -47
- package/src/component/helper/MapDraw.js +6 -6
- package/src/component/legend/LegendModel.js +3 -3
- package/src/component/legend/LegendView.js +18 -12
- package/src/component/legend/ScrollableLegendView.js +18 -16
- package/src/component/marker/MarkLineModel.js +2 -1
- package/src/component/marker/markerHelper.js +8 -5
- package/src/component/toolbox/ToolboxView.js +5 -0
- package/src/component/toolbox/feature/MagicType.js +18 -13
- package/src/component/tooltip/TooltipContent.js +59 -22
- package/src/component/tooltip/TooltipView.js +9 -7
- package/src/coord/Axis.js +29 -2
- package/src/coord/View.js +10 -1
- package/src/coord/axisDefault.js +25 -1
- package/src/coord/radar/Radar.js +5 -7
- package/src/data/DataDimensionInfo.js +135 -0
- package/src/data/List.js +29 -16
- package/src/data/Tree.js +3 -1
- package/src/data/helper/completeDimensions.js +49 -30
- package/src/data/helper/createDimensions.js +2 -0
- package/src/data/helper/sourceHelper.js +216 -124
- package/src/echarts.js +2 -2
- package/src/layout/barGrid.js +20 -10
- package/src/layout/barPolar.js +0 -4
- package/src/model/Series.js +3 -3
- package/src/model/referHelper.js +34 -11
- package/src/scale/Interval.js +84 -4
- package/src/scale/Log.js +9 -2
- package/src/scale/helper.js +1 -39
- package/src/stream/Scheduler.js +8 -0
- package/src/theme/dark.js +3 -0
- package/src/util/graphic.js +3 -4
- package/src/visual/LegendVisualProvider.js +55 -0
- package/src/visual/dataColor.js +0 -13
- package/src/visual/seriesColor.js +13 -7
- package/theme/azul.js +163 -0
- package/theme/bee-inspired.js +178 -0
- package/theme/blue.js +178 -0
- package/theme/caravan.js +178 -0
- package/theme/carp.js +163 -0
- package/theme/cool.js +180 -0
- package/theme/dark-blue.js +168 -0
- package/theme/dark-bold.js +168 -0
- package/theme/dark-digerati.js +168 -0
- package/theme/dark-fresh-cut.js +168 -0
- package/theme/dark-mushroom.js +168 -0
- package/theme/dark.js +69 -62
- package/theme/eduardo.js +178 -0
- package/theme/forest.js +163 -0
- package/theme/fresh-cut.js +163 -0
- package/theme/fruit.js +178 -0
- package/theme/gray.js +220 -0
- package/theme/green.js +222 -0
- package/theme/helianthus.js +263 -0
- package/theme/infographic.js +72 -57
- package/theme/inspired.js +163 -0
- package/theme/jazz.js +163 -0
- package/theme/london.js +163 -0
- package/theme/macarons.js +80 -57
- package/theme/macarons2.js +251 -0
- package/theme/mint.js +155 -0
- package/theme/red-velvet.js +163 -0
- package/theme/red.js +225 -0
- package/theme/roma.js +55 -22
- package/theme/royal.js +163 -0
- package/theme/sakura.js +140 -0
- package/theme/shine.js +52 -45
- package/theme/tech-blue.js +180 -0
- package/theme/vintage.js +37 -23
|
@@ -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
|
|
@@ -21,11 +21,21 @@ jobs:
|
|
|
21
21
|
run: |
|
|
22
22
|
npm install
|
|
23
23
|
npm install -g jshint
|
|
24
|
+
npm install git+https://github.com/ecomfe/zrender.git
|
|
25
|
+
- name: build zrender
|
|
26
|
+
run: |
|
|
27
|
+
cd node_modules/zrender
|
|
28
|
+
npm install
|
|
29
|
+
npm run prepublish
|
|
30
|
+
cd ../..
|
|
24
31
|
- name: jshint
|
|
25
32
|
run: |
|
|
26
33
|
jshint
|
|
27
|
-
- name: build
|
|
34
|
+
- name: build release
|
|
28
35
|
run: |
|
|
29
|
-
|
|
36
|
+
npm run release
|
|
30
37
|
env:
|
|
31
38
|
CI: true
|
|
39
|
+
- name: unit test
|
|
40
|
+
run: |
|
|
41
|
+
npm run test
|
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
|
-
|
|
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
|
-
|
|
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
|
-

|
|
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
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ECharts
|
|
2
2
|
|
|
3
|
-
<a href="
|
|
3
|
+
<a href="https://echarts.apache.org/">
|
|
4
4
|
<img style="vertical-align: top;" src="./asset/logo.png?raw=true" alt="logo" height="50px">
|
|
5
5
|
</a>
|
|
6
6
|
|
|
@@ -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
|
[](https://travis-ci.org/apache/incubator-echarts) [](https://www.npmjs.com/package/echarts) [](https://www.npmjs.com/package/echarts)
|
|
15
15
|
|
|
@@ -22,14 +22,6 @@ You may choose one of the following methods:
|
|
|
22
22
|
+ `npm install echarts --save`
|
|
23
23
|
+ CDN: [jsDelivr CDN](https://www.jsdelivr.com/package/npm/echarts?path=dist)
|
|
24
24
|
|
|
25
|
-
## Get ECharts GL
|
|
26
|
-
|
|
27
|
-
ECharts-GL is an extension pack of ECharts, which provides 3D plots, globe visualization, and WebGL acceleration.
|
|
28
|
-
|
|
29
|
-
+ Get from [https://github.com/ecomfe/echarts-gl](https://github.com/ecomfe/echarts-gl)
|
|
30
|
-
|
|
31
|
-
+ `npm install echarts-gl --save`
|
|
32
|
-
|
|
33
25
|
## Docs
|
|
34
26
|
|
|
35
27
|
+ Tutorial
|
|
@@ -96,11 +88,13 @@ If you wish to debug locally or make pull requests, please refer to [contributin
|
|
|
96
88
|
|
|
97
89
|
### Extensions
|
|
98
90
|
|
|
91
|
+
+ [ECharts GL](https://github.com/ecomfe/echarts-gl) An extension pack of ECharts, which provides 3D plots, globe visualization, and WebGL acceleration.
|
|
92
|
+
|
|
99
93
|
+ [Liquidfill 水球图](https://github.com/ecomfe/echarts-liquidfill)
|
|
100
94
|
|
|
101
95
|
+ [Wordcloud 字符云](https://github.com/ecomfe/echarts-wordcloud)
|
|
102
96
|
|
|
103
|
-
+ [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.
|
|
104
98
|
|
|
105
99
|
+ [vue-echarts](https://github.com/ecomfe/vue-echarts) ECharts component for Vue.js
|
|
106
100
|
|