option1: {
tooltip: {
trigger: 'item',
position: ['50%', '0'],//提示框位置
textStyle:{
fontSize: 8,//字体大小
color: '#AADDFF'//字体颜色
},
formatter: '{a} <br/>{b}: {c} ({d}%)'
},
series: [
{
name: '办理人数统计',
type: 'pie',
radius: ['55%', '65%'],
center:['45%','55%'],
avoidLabelOverlap: false,
label: {
normal: { // normal 是图形在默认状态下的样式
show: true,
position: 'center',
fontSize: '12',
fontWeight: 'bold',
formatter: '{d}%' // {b}:数据名; {c}:数据值; {d}:百分比,可以自定义显示内容,
}
},
// emphasis: {
// label: {
echarts饼图
最新推荐文章于 2024-05-07 07:22:14 发布