如何去掉,pie区块,鼠标划过,颜色变化的效果
配置项如下
option = {
title : {
text: '大标题', // 大标题
textStyle: {
fontSize: 16,
fontFamily: 'PingFang SC, Microsoft YaHei',
color: '#8a8a8a',
lineHeight: 16,
},
subtext: '子标题', // 子标题
subtextStyle: {
fontSize: 48,
fontFamily: 'PingFang SC, Microsoft YaHei',
color: '#2a2a2a',
lineHeight: 48,
verticalAlign: 'top',
},
x: 'center', // 标题位置
y: '32%' // 标题位置
},
// 提示框组件
tooltip : {
show: false,
trigger: 'item',
formatter: "{b} : {c} ({d}%)"
},
// 图例组件
legend: {
show: false,
orient: 'horizontal',
left: 'center',
bottom: '10%',
textStyle: {
color: '#9a9a9a',
fontSize: '12'
},
},
series : [
{
name: '',
type: 'pie',
hoverAnimation: false,
legendHoverLink: false,
hoverOffset: 0,
radius : ['48%', '96%'],
center: ['50%', '50%'],
clockwise: false,
silent:true,
data: [
{
value:.3,
},
{
value: 1 - .3
},
],
label: {
normal: {
show: false,
position: 'center'
},
emphasis: {
show: false,
textStyle: {
fontSize: '30',
fontWeight: 'bold'
}
}
},
labelLine: {
normal: {
show: false
}
},
itemStyle: {
normal: {
opacity: 1,
},
emphasis: {
opacity: 1,
}
},
}
]
};