option1:{
title:{
show:false,
text:'土地使用面积'
},
tooltip: {
trigger: 'item',
formatter: '{b}: {c} ({d}%)'
},
legend:{
textStyle:{
fontSize: 12,//字体大小
color: '#AADDFF'//字体颜色
},
bottom: 20,
icon:'diamond'
},
// toolbox: {
// show:true,
// feature:{
// saveAsImage:{
// },
// }
// },
series: [
{
emphasis: {itemStyle: {shadowBlur: 10,shadowOffsetX: 0,shadowColor: 'rgba(0, 0, 0, 0.5)'}},
type: 'pie',
radius: ['35%','55%'],
center:['50%','35%'],
color:['#C23531','#FFB508','#16D0FF'],
label: {
formatter: ' {a|{b}} ({d}%)',
rich: {
a:{
color: '#AADDFF',
lineHeight: 22,
align: 'center',
fontSize:13
},
d:{
align: 'center',
fontSize:13,
}
}
},
data: [
{value: 35, name: '耕地面积'},
{value: 10, name: '种植地面积'},
{value: 35, name: '其他面积'},
]
}
]
}
echarts饼图(2)
最新推荐文章于 2023-02-15 10:53:02 发布