getChartPie = (data) => {
let legendData = ['欺诈风险', '违约风险', '违法风险', '违规风险'];
let option = {
backgroundColor: 'transparent',
grid: {
top: 40,
left: 10,
right: 10,
bottom: 0,
containLabel: true
}, //图形的位置
tooltip: {
show: true,
backgroundColor: 'rgba(0,0,0, 0)',
textStyle: {
color: '#666',
fontWeight: 'bold'
},
formatter: function (v) {
return `
${v.name}:
${thousands(v.value)}
}
},
angleAxis: {
splitNumber: 12, // 坐标轴分割段数
min: 0,
max: 100,
axisLi