new Pie(el.value, {
appendPadding: 10,
data,
width:600,
height:400,
angleField: "value",
colorField: "type",
color: ['#FF7420','#FCD4C7'],
radius: 0.6, //设置饼状图大小
innerRadius: 0.4,
label: {
type: "outer",
content: "{name} {value}吨"+'\n'+'占比{percentage}',
},
interactions: [{ type: "pie-legend-active" }, { type: "element-active" }],
statistic: {
title: false,
content: '',
},
}).render();