`
}
},
angleAxis: [{
// type: 'value',
boundaryGap: false,
startAngle: 90,
polarIndex: 0,
// data: XData,
axisLabel: {
formatter: (e) => {
return windDirection[e]
// return e[0].value[3]
}
}
},
{
// type: 'value',
boundaryGap: false,
startAngle: 90,
polarIndex: 1,
// data: XData,
axisLine: {
show: false
},
splitLine: {
show: false
},
axisTick: {
show: false
},
axisLabel: {
show: false
}
}
],
radiusAxis: [{
min: 0,
polarIndex: 0,
max: 'dataMax',
axisLabel: {
show: false
},
axisTick: {
show: false
}
}, {
min: 0,
polarIndex: 1,
max: 'dataMax',
axisLine: {
show: false
},
axisLabel: {
show: false
},
splitLine: {
show: false
},
axisTick: {
show: false
}
}],
series: [{
coordinateSystem: 'polar',
type: 'line',
itemStyle: {
normal: {
color: "#f4ad04",
}
},
polarIndex: 0,
symbol: 'emptyCircle',
symbolSize: 6,
areaStyle: {
normal: {
color: {
type: 'radial',
x: 0.5,
y: 0.5,
r: 0.5,
colorStops: [{
offset: 0,
color: '#fff',
}, {
offset: 0.2,
color: '#0f0' // 100% 处的颜色
} , {
offset: 0.4,
color: '#00f' // 100% 处的颜色
}, {
offset: 0.6,
color: '#0ff' // 100% 处的颜色
}, {
offset: 0.8,
color: '#ff0' // 100% 处的颜色
}, {
offset: 1,
color: '#f00' // 100% 处的颜色
}],
globalCoord: false // 缺省为 false
},
opacity: 0.7
}
},
data: data2
},
{
coordinateSystem: 'polar',
type: 'line',
polarIndex: 1,
symbol: 'emptyCircle',
symbolSize: 6,
data: data3
}
],
animationDuration: 2000
};