Apache echarts

Clone this repo:

Branches

  1. 1b67dcf chore: remove unnecessary code by Ovilia · 3 days ago main
  2. 75307e1 feat(segmentedDoughnut): render logic by Ovilia · 7 days ago
  3. 1690c38 Merge pull request #2 from Kafuu-Chinocya/patch-1 by Wenli Zhang · 8 days ago
  4. 0bf92fa feat(segmentedDoughnut): update screenshot by Ovilia · 8 days ago
  5. 6b4128b feat(segmentedDoughnut): render item and bg by Ovilia · 8 days ago

echarts-custom-series

This repo provides some custom series for Apache ECharts. The minial supported version is Apache ECharts v6, which is not released yet.

List of Custom Series

violin
violin
contour
contour
stage
stage
segmentedDoughnut
segmentedDoughnut
barRange
barRange
lineRange
lineRange

Setup

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

Create A New Custom Series

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.

Build

Each of the directories in custom-series/ is a custom series.

Build All

npm run build

Build One

npm run build <series-name>

For example, to build custom-series/violin, run:

npm run build violin

Generate Thumbnails

npm run thumbnail
# or
npm run thumbnail <series-name>

Publish to the npm registry

TODO