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

60 lines (59 loc) 1.18 kB
// 时速表 export default { name: '时速表', type: 'gauge', option: (data) => ({ series: [ { type: 'gauge', axisLine: { lineStyle: { width: 30, color: [ [0.3, '#67e0e3'], [0.7, '#37a2da'], [1, '#fd666d'], ], }, }, pointer: { itemStyle: { color: 'auto', }, }, axisTick: { distance: -30, length: 8, lineStyle: { color: '#fff', width: 2, }, }, splitLine: { distance: -30, length: 30, lineStyle: { color: '#fff', width: 4, }, }, axisLabel: { color: 'auto', distance: 40, fontSize: 20, }, detail: { valueAnimation: true, formatter: data.valueFormater, // '{value} km/h', color: 'auto', }, data: [ { value: data.y[0].data[0], name: data.y[0].name, }, ], }, ], }), };