series: [{
name: "组合比例",
type: "pie",
radius: ["30%", "40%"],
center: ["25%", "51%"],
avoidLabelOverlap: false,
itemStyle: {
normal: {
label: {
show: false,
// formatter: '{b} : {c} ({d}%)'
formatter: "({d}%)",
},
labelLine: {
show: true,
},
color: function(params) {
//自定义颜色
var colorList = [
"rgb(98, 183, 255)",
"rgb(152, 201, 250)",
"rgb(177, 169, 255)",
"rgb(253, 204, 96)",
"rgb(250, 181, 152)",
"rgb(208, 178, 180)",
];
return colorList[params.dataIndex];
},
},
},
data: series,
label: {//饼图中间文字设置
normal: {
show: true,
position: 'center',
color:'#9A9EBA',
formatter: '配⽐详情',
},
emphasis: {//中间文字显示
show: true,
}
},
}, ],