legend 会触发brush 如何关闭此功能?
配置项如下
option = {
title: {
text: 'Awesome Chart'
},
legend : {
data : ['A', 'B', 'C', 'D'],
textStyle : {
color : '#000',
fontSize : 11
},
selected : {
'A' : true,
'B' : false,
'C' : false,
'D' : false
}
},
toolbox : {
feature : {
brush : {
type : ['lineX', 'clear']
}
}
},
brush : {
xAxisIndex : 0,
throttleDelay :1000,
throttleType : 'debounce',
brushType : 'lineX',
brushStyle:{
borderWidth: 2,
color: 'rgba(120,140,180,0.1)',
borderColor: 'rgba(120,140,180,0.9)'
},
outOfBrush : {
colorAlpha : 0.1
}
},
xAxis: {
data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
},
yAxis: {},
series: [{
name:'A',
type: 'line',
data:[220, 182, 191, 234, 290, 330, 310]
},{
name:'B',
type: 'line',
data:[220, 182, 191, 234, 290, 330, 310]
},{
name:'C',
type: 'line',
data:[220, 182, 191, 234, 290, 330, 310]
},{
name:'D',
type: 'line',
data:[220, 182, 191, 234, 290, 330, 310]
}]
};
myChart.on('brushselected',function(){
alert('触发brushselected')
})