legend:{bottom:bottom,formatter:function(name){return{a|+name+}},textStyle:{//文字块背景色,一定要加上,否则对齐不会生效backgroundColor:transparent,rich:{a:{width:110},},},},
tooltip:{trigger:item,formatter:{a}{b}:{c}({d}%)},
这里的线条控制的是 labelLine:{show:false}, 一般而言我们可能需要加一个数字之类的 series:[{name:,type:pie,radius:[40%,70%],label:{formatter:{b|{b}:}{c}{per|{d}%},rich:{b:{color:#6E7079,lineHeight:22,align:center},}},}}
有时候我们echart的标题需要有大有小!但是text只有一个! 其实有2种,一种较为简单,添加副标题即可 title:[{text:主标题,left:50%,top:40%,textAlign:center,textStyle:{color:color,fontStyle:normal,fontWeight:normal,