有没有办法将多个线段视为 1 条线?IE:我将鼠标悬停在一个上,两者都被突出显示,并且切换图例中的可见性将隐藏两个部分。
http://jsfiddle.net/rayholland/HSvBj/2/
series: [
{
type: 'line',
data: [{x:0,y:0},{x:1,y:1}],
events: {
legendItemClick: function(event) {
this.visible?
this.chart.get('group1').hide():
this.chart.get('group1').show();
}
}
},{
type: 'line',
data: [{x:3,y:1},{x:4,y:0}],
showInLegend: false,
id: 'group1'
}
]