option4 = {
series: [
{
name: '业务指标',
type: 'gauge',
startAngle: 180,
endAngle: 0,
center: ['50%', '70%'], // 默认全局居中
min:0,
max:2,
axisLabel: {
formatter:function(v){
switch (v + '') {
case '0' : return '0';
case '2' : return '12000';
}
},
textStyle: {
color: "#fff",
fontSize: 10,
fontWeight: "bolder"
},distance:-20
},
axisLine: {
lineStyle: {
color: [
[0.31, "#F19149"],
[1, "#FFFFFF"]
],
width: 20
}
},
axisTick: {
"lineStyle": {
"color": "#3bb4f2",
width: 16
},
"length": 0,
"splitNumber": 1
},
splitLine: {
show: false
},
itemStyle: {
normal: {
"color": "#449BE2"
}
},
title: {
show: false
},
detail: {
show: false
},
// detail: {formatter:'{value}%'},
data: [{value: 0.4, name: '完成率'}]
}
]
};
这是我的配置