option = { series: [{ type: 'gauge', startAngle: 180,//开始角度 endAngle: 0,//结束角度 min: 0,//表盘最小值 max: 600,//表盘最大值 splitNumber:12,//分几段 itemStyle: { color: '#1F8AFF',//指针颜色 shadowColor: 'rgba(0,138,255,0.45)',//阴影 shadowBlur: 10,//阴影深度 shadowOffsetX: 2, shadowOffsetY: 2 }, pointer: { icon: 'path://M2090.36389,615.30999 L2090.36389,615.30999 C2091.48372,615.30999 2092.40383,616.194028 2092.44859,617.312956 L2096.90698,728.755929 C2097.05155,732.369577 2094.2393,735.416212 2090.62566,735.56078 C2090.53845,735.564269 2090.45117,735.566014 2090.36389,735.566014 L2090.36389,735.566014 C2086.74736,735.566014 2083.81557,732.63423 2083.81557,729.017692 C2083.81557,728.930412 2083.81732,728.84314 2083.82081,728.755929 L2088.2792,617.312956 C2088.32396,616.194028 2089.24407,615.30999 2090.36389,615.30999 Z', length: '60%',//指针长度 width: 15,//指针宽度 offsetCenter: [0, '5%'],//指针偏中心 showAbove: true, }, axisTick: { splitNumber: 1,//分段的区间点数 lineStyle: { width: 0,//分段的区间宽度 } }, splitLine: { length: 20,//分段的区间指针长度 lineStyle: { width: 0,//分段的区间指针宽度 color: '#ccc' } }, axisLabel: { distance: 20,//刻度字离边长度 color: '#999', fontSize:18 }, title: { show: true }, detail: { width: 40, height: 14, fontSize: 40, color: 'black', backgroundColor: 'white', borderRadius: 0, fontWeight:700 }, data: [{ value: 349, name: '总得分', title: { offsetCenter: ['0%', '35%'] }, detail: { offsetCenter: ['0%', '25%'] } }] }, { type: 'gauge', startAngle: 180,//开始角度 endAngle: 0,//结束角度 min: 0,//表盘最小值 max: 600,//表盘最大值 splitNumber:12,//分几段 itemStyle: { color: '#1F8AFF',//指针颜色 shadowColor: 'rgba(0,138,255,0.45)',//阴影 shadowBlur: 10,//阴影深度 shadowOffsetX: 2, shadowOffsetY: 2 }, pointer: { show:false, }, axisLine: { roundCap: false, lineStyle: { width: 30,//仪表底色宽度 color: [ [0.33, '#5294FF'], [0.66, '#5AD8A6'], [1, '#FEC03C'] ] } }, axisTick: { splitNumber: 1,//分段的区间点数 lineStyle: { width: 0,//分段的区间宽度 } }, splitLine: { length: 20,//分段的区间指针长度 lineStyle: { width: 0,//分段的区间指针宽度 color: '#ccc' } }, axisLabel: { distance: 20,//刻度字离边长度 color: '#999', fontSize:18 }, detail: { width: 40, height: 14, fontSize: 30, color: 'black', backgroundColor: 'white', borderRadius: 0, fontWeight:400 }, data: [{ value: 6000, name: '推送量', title: { offsetCenter: ['-40%', '60%'] }, detail: { offsetCenter: ['-40%', '50%'] } }, { value: 3000, name: '回收量', title: { offsetCenter: ['0%', '60%'] }, detail: { offsetCenter: ['0%', '50%'] } }, { value: (3000/6000*100), name: '回收率', title: { offsetCenter: ['40%', '60%'] }, detail: { offsetCenter: ['40%', '50%'], formatter: '{value}%' } }] }] };