option = {
title: {
text: '游戏比例',
left: 'center'
},
tooltip: {
trigger: 'item'
},
color: ['#fdab03','#f27647'],
legend: {
orient: 'horizontal',
x: 'center',
y: 'bottom',
},
series: [
{
type: 'pie',
data: [
{
value: 500, name: '王者' },
{
value: 500, name: 'lol' }
],
margin:5,
itemStyle:{
normal:{
label:{
show: true,
formatter: '{b} : {d}%',
position: 'inside',
color:'#fff'
},
labelLine :{
show:false}
}
},
}
]
};
echart饼图上显示数据
猜你喜欢
转载自blog.csdn.net/sxmzhw/article/details/120728689
今日推荐
周排行