// ECharts 水球图插件,需要额外插件脚本,参见上方“脚本”
// 完整配置参数参见:https://github.com/ecomfe/echarts-liquidfillvar option = {series: [{type: 'liquidFill',data: [0.6, 0.5, 0.4, 0.3],radius: '40%',shape: 'diamond',center: ['25%', '25%']}, {type: 'liquidFill',data: [0.6, 0.5, 0.4, 0.3],direction: 'left',radius: '40%',shape: 'rect',center: ['75%', '25%']},{type: 'liquidFill',data: [0.6, 0.5, 0.4, 0.3],radius: '40%',shape: 'roundRect',center: ['50%', '50%'],backgroundStyle: {borderColor: '#ff00ff', //边框颜色borderWidth: 1, //边框粗细shadowColor: 'red', //阴影颜色shadowBlur: 500 //阴影范围},outline: {show: false},label: { //设置水球中间的字等normal: {position: ['38%', '40%'],formatter: function() {return 'ECharts\nLiquid Fill';},textStyle: {fontSize: 40,color: '#D94854'}}}// waveAnimation: false, // 禁止左右波动}, {type: 'liquidFill',data: [0.6, 0.5, 0.4, 0.3],radius: '50%',shape: 'pin',center: ['75%', '75%'],amplitude: 0,waveAnimation: false,outline: {show: false},backgroundStyle: {shadowColor: 'rgba(0, 0, 0, 0.4)',shadowBlur: 20},}]
};
