option = {
tooltip: {
trigger: 'axis'
},
legend: {
left: 'center',
data: ['台区画像-辅助决策'],
show: false
},
radar: [
{
indicator: [
{text: '400V延伸'},
{text: '加装调压器'},
{text: '新增布点'}
],
center: ['50%', '50%'],
radius: 80,
startAngle: 90,
splitNumber: 4,
shape: 'circle',
name: {
formatter: '{value}',
textStyle: {
color: 'orange'
}
},
splitArea: {
areaStyle: {
color: ['orange', '#ffffff', '#ffffff', '#ffffff', '#ffffff'],
}
},
axisLine: {
lineStyle: {
color: 'rgb(182, 209, 226, 0.5)'
}
},
splitLine: {
lineStyle: {
color: 'rgb(182, 209, 226, 0.2)'
}
}
}
],
series: [
{
type: 'radar',
tooltip: {
trigger: 'item'
},
emphasis: {
lineStyle: {
width: 1
}
},
areaStyle: {
color: {
type: 'radial',
x: 0.5,
y: 0.5,
r: 0.5,
colorStops: [{
offset: 0, color: 'pink' // 0% 处的颜色
}, {
offset: 1, color: '#FFB90F' // 100% 处的颜色
}],
global: false // 缺省为 false
},
opacity: 0.2
},
data: [
{
value: [61, 185, 382],
name: '台区画像-辅助决策',
symbol: 'circle',
symbolSize: 8,
lineStyle: {
type: 'dashed',
width: 1,
color: '#FFB90F'
},
itemStyle: {
color: 'orange'
}
}
]
}
]
};