我们在官网的demo中看到饼图的引导线都是直接对接文字的
但是需求是要把文字放在引导线上方
所以代码应该修改
option:{
tooltip: {
trigger: "item",
formatter: "{b}: {c} ({d}%)",
textStyle: {
color: "#ffffff",
fontSize: 30
}
},
series: [
{
name: "",
type: "pie",
radius: ["30%", "55%"],
labelLine: {
normal: {
length: 20,
length2: 70,
}
},
label: {
formatter: "{per|{d}%}{b|{b