自定义组件库-封装第三方图表,如echarts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 438B

12345678910
  1. import chart from '../../../src/chart/echarts/CustomChartBar/CustomChartBar.js';
  2. import Utils from '../../utils.js';
  3. let config = new chart(document.querySelector('#container'), {getConfig:true}).getConfig();
  4. let styleConfig = config.styleConfig;
  5. let dataConfig = config.dataConfig;
  6. let option = config.fun.themeMerge(Utils.parseStyle(styleConfig), Utils.parseData(dataConfig));
  7. new chart(document.querySelector('#container'), option)