option = {
series: [
{
type: 'gauge',
radius:'90%',
center: ['50%', '57%'],
splitNumber: 5,
itemStyle: {
color: '#6EBEFF',
},
progress: {
show: true,
roundCap: true,
width: 3
},
axisLine: {
roundCap: true,
lineStyle: {
width: 3
}
},
axisTick: {
show: false
},
splitLine: {
length: 3,
distance: 0,
lineStyle: {
width: 1,
color: '#fff'
}
},
axisLabel: {
distance: -21,
color: '#fff',
fontSize: 12
},
anchor: {
show: true,
showAbove: true,
size: 10,
},
title: {
show: true,
offsetCenter: [0, '75%'],
color: '#F3D824',
fontSize: 20,
fontWeight: 'bold',
},
pointer:{
show:true,
length: "50%",
width: 2,
itemStyle: {
color: '#fff',
}
},
detail: {
valueAnimation: true,
fontSize: 14,
offsetCenter: [0, '50%'],
color:'#fff',
formatter:'{value}%'
},
data: [
{
value: this.instrumentDataList[0].value,
name:this.instrumentDataList[0].name,
}
]
},
{
type: 'gauge',
radius:'75%',
center: ['50%', '57%'],
itemStyle: {
color: '#fcc129',
shadowColor: 'rgba(0,138,255,0.45)',
shadowBlur: 10,
shadowOffsetX: 2,
shadowOffsetY: 2
},
progress: {
show: true,
width: 40,
itemStyle: {
color: {
type: 'linear',
x: 1,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: '#fce426'
},
{
offset: 1,
color: '#ff0000'
}
],
global: false
}
}
},
axisLine: {
show: false
},
axisTick: {
show: false
},
splitLine: {
show: false
},
axisLabel: {
show: false
},
anchor: {
show: false
},
title: {
show: false
},
pointer:{
show:false
},
detail: {
show:false
},
data: [
{
value: this.instrumentDataList[0].value,
name:this.instrumentDataList[0].name,
}
]
}
]
};