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

33 lines (32 loc) 543 B
export default { type: 'hbar2', name: '横向柱状图', option: (data) => ({ tooltip: false, legend: false, grid: { top: '5%', left: '3%', right: '4%', bottom: '3%', }, xAxis: { show: false, type: 'value', }, yAxis: { axisTick: false, type: 'category', inverse: true, data: data.x, }, series: data.y.map((item) => ({ type: 'bar', label: { show: true, position: 'right', }, ...item, })), }), };