2024年06月23日 建站教程
在series中家一行代码轻松解决,但是在roseType: 'area'状态来不执行。
series: [{
name: '患者类型统计',
type: 'pie',
radius: ['35%', '50%'],
avoidLabelOverlap: false,
hoverAnimation:true,
minAngle: 30,//没错,就是它!它!它
startAngle: 60,//旋转饼图
label: {
normal: {
formatter: '{b|{b}}{per|{d}%} ', //label 的内容
borderWidth: 10,
rich: { //定义不同地方的文字的字体大小和颜色
b: {
fontSize: 12,
lineHeight: 33,
color: '#7f8087',
},
per: {
color: '#7f8087',
padding: [2, 4],
fontSize: 12
}
}
}
},
data: typePie
}]
};
本文链接:http://so.lmcjl.com/news/7118/