雷达图轴线线性渐变如何统一从内到外,而不是如图这种,x,y,x2,y2是什么含义
配置项如下
option = {
title: {
text: '基础雷达图'
},
tooltip: {},
legend: {
data: ['预算分配(Allocated Budget)']
},
radar: {
indicator: [
{ name: '客户至上', max: 6500},
{ name: '合规守信', max: 16000},
{ name: '展业能力', max: 30000}
],
center: ['50%', '60%'],
startAngle: 90,
radius: '80%',
splitNumber: 0,
axisLine: {
lineStyle: {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [{
offset: 0.3, color: 'transparent' // 0% 处的颜色
}, {
offset: 1, color: '#A09EAA' // 100% 处的颜色
}],
globalCoord: false // 缺省为 false
}
}
},
splitLine: {
lineStyle: {
color: 'transparent'
}
}
},
color: ['#D9F6F0'],
series: [{
name: '预算 vs 开销(Budget vs spending)',
type: 'radar',
data : [
{
value: [4300, 10000, 28000, 35000, 50000, 19000],
name: '李玉刚',
icon: 'circle',
symbolSize: 0,
lineStyle: {
normal: {
color: '#79DFFB'
}
},
areaStyle: {
normal: {
color: '#D4EBFF'
}
}
}
]
}]
};