let option = {
color:['#36BB95','#1A9AE9'],
series: [
{
name: '',
type: 'pie',
radius: ['50%', '70%'],//饼图半径
hoverAnimation : false,//是否开启hover在扇区上的放大动画效果。
label: {
normal:{
show:true,
position:'center',
textStyle:{
color: 'rgba(0,0,0,0)'
}
}
},
//获得焦点,高亮时的样式
emphasis: {
label:{
show:true,
formatter:function(params){
var value = '';
value = '{a|'+params.data.name+'}\r\n'+ '{b|'+params.data.value+'}';
return value;
},
rich:{
a: {
color: '#595C61',
fontSize: 14,
lineHeight:22
},
b:{
color: '#000000',
fontSize: 24,
lineHeight:32
}
}
}
},
data: []
}
]
};
Echarts饼图配置项
猜你喜欢
转载自blog.csdn.net/wsln_123456/article/details/104036526
今日推荐
周排行