legend: {
data: res.data.labels,
icon: 'circle',
formatter: (params) => {
let isfind = (Number(map.get(params)) / this.sum * 100) + '';
let isdata;
if (isfind.indexOf('.') != -1) {
isdata = (Number(map.get(params)) / this.sum * 100).toFixed(2) + '%'
} else {
isdata=(Number(map.get(params)) / this.sum * 100) + '%'
}
return params + '\t\t\t|\t\t' + isdata + '\t\t' + this.formatNum(Number(map.get(params)))
},
// formatter: '{a|{name}}',
itemGap: 0,
bottom: 20,
left: 'center',
textStyle: {
color: "#1B1B4E",
padding: [5, 24, 5, 0],
rich: {
a: {
width: (allWidth - 200) / 10,
height: 38,
fontSize: 12
},
}
},
},