| commit | 0a749018d5f6375c6ad85fec642cffcae7d40cd7 | [log] [tgz] |
|---|---|---|
| author | Ovilia <zwl.sjtu@gmail.com> | Wed Mar 12 14:55:49 2025 +0800 |
| committer | Ovilia <zwl.sjtu@gmail.com> | Wed Mar 12 14:55:49 2025 +0800 |
| tree | 913173503d78ebb06dccd2ff9ccee951e40c94ff | |
| parent | 64950671149cbe69cadefee630d12ced1c4cf2ab [diff] |
feat: create segmented doughnut
This repo provides some custom series for Apache ECharts. The minial supported version is Apache ECharts v6, which is not released yet.
| violin | contour |
| stage | |
| barRange | lineRange |
npm install
Note: Building requires the lib files of ECharts v6. So before ECharts v6 is released, you need to clone apache/echarts locally and use npm link to link it.
# Under the directory of zrender git checkout v6 npm install npm run prepare npm link # Under the directory of echarts git checkout v6 npm install npm link zrender npm link npm run prepare npm run build # Under the directory of echarts-custom-series/custom-series/<series-name> npm link echarts
npm run generate <series-name>
The generated files are in custom-series/<series-name>. Note that if there are multiple words in the series name, they should be in camel case like npm run generate barRange.
Each of the directories in custom-series/ is a custom series.
npm run build
npm run build <series-name>
For example, to build custom-series/violin, run:
npm run build violin
npm run thumbnail # or npm run thumbnail <series-name>
TODO