UNPKG

@devops-web/cs-chart

Version:

## 更新流程 1. 切换源到npm官方源https://registry.npmjs.org/ 2. npm login 3. npm run lib 4. 修改package.json中的版本号 5. npm publish --access public

32 lines (31 loc) 486 B
// 折线图 export default { name: '柱状图', type: 'bar', option: (data) => ({ xAxis: { type: 'category', axisTick: { show: false, }, data: data.x, }, grid: { containLabel: true, left: 10, right: 10, top: 30, bottom: 20, }, yAxis: { type: 'value', }, tooltip: { trigger: 'axis', }, series: data.y.map((item) => ({ type: 'bar', ...item, })), }), };