如图,我想3个数据的半径是自己来控制的,有时候想一个小的数据半径大一点凸出来。只用面积来展示数据比例的多少?官网的是面积跟半径同时按比例来的。这个有解决办法嘛??
配置项如下
option = {
series: [{
type: 'pie',
radius: [70, 100],
center: ['50%', '50%'],
startAngle: 0,
hoverAnimation: false,
label: {
normal: {
show: false,
position: 'outside'
}
},
data: [0.3,0.7],
color: ['#70e2ff', 'transparent'],
}, {
type: 'pie',
radius: [70, 110],
startAngle: -108,
center: ['50%', '50%'],
hoverAnimation: false,
label: {
normal: {
show: false,
position: 'outside'
}
},
data: [0.3,0.7],
color: ['red', 'transparent'],
},{
type: 'pie',
radius: [70, 125],
startAngle: -216,
center: ['50%', '50%'],
hoverAnimation: false,
label: {
normal: {
show: false,
position: 'outside'
}
},
data: [0.4,0.6],
color: ['yellow', 'transparent'],
},{
type: 'pie',
clockWise: true,
hoverAnimation: false,
radius: [100, 100],
label: {
normal: {
position: 'center'
}
},
data: [{
value: 1,
label: {
normal: {
formatter: '资金总额(元)',
textStyle: {
color: '#687785',
fontSize: 15
}
}
}
}, {
label: {
normal: {
formatter: '\n' + 10000,
textStyle: {
color: '#3c3c46',
fontSize: 21
}
}
}
}]
}],
}