npm install @njshaoshao/we-theme-charts
yarn add @njshaoshao/we-theme-charts
import echarts from 'echarts';
// import theme one by one
// import webar from '@njshaoshao/we-theme-echarts/webar'
// import weline from '@njshaoshao/we-theme-echarts/weline'
// import all themes
import { webar, weline } from '@njshaoshao/we-theme-echarts';
echarts.registerTheme('webar', webar);
echarts.registerTheme('weline', weline);
// then can use in init function with theme name
echarts.init(initDom, 'weline')
echarts.init(initDom, 'webar')
import echarts from 'echarts';
// import theme one by one
// import webar from '@njshaoshao/we-theme-echarts/webar'
// import weline from '@njshaoshao/we-theme-echarts/weline'
import { webar, weline } from '@njshaoshao/we-theme-echarts';
echarts.init(initDom, weline)
echarts.init(initDom, webar)