echarts饼图禁止鼠标悬浮区块突出

禁止悬浮突出,在series内添加hoverAnimation:false即可

代码如下:

option = {

   color:['#3498db','#EEEEEE'],
series: [
{
name: '访问来源',
type: 'pie',
radius: ['86%', '80%'],
hoverAnimation:false,  //鼠标悬浮是否有区域弹出动画,false:无 true:有
avoidLabelOverlap: false,
label: {
normal:{
show: false,
position: 'center',
}
},
data: [
{value: 20},
{value: 80},
]
}
]
};
posted @ 2020-08-26 15:07  coder小白  阅读(4986)  评论(0)    收藏  举报