在高图中更改鼠标悬停点 [英] Change mouseover point in highcharts
本文介绍了在高图中更改鼠标悬停点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以帮助我解决我的问题吗?
Can somebody help me with my problem.
我有这个饼图,
当我将鼠标悬停在其上时,我需要更改point(segment)
and i need to change point( segment ), when i mouseover on it
您可以建议我最好的方法是什么?
What the best way you can advise me?
也许是这样,改变点,但是我不知道该怎么做
Maybe something like this, change point, but i don't know how to do this
plotOptions: {
series:{
point:{
events: {
mouseOver: function( e ){
console.log( this )
}
}
}
}
},
推荐答案
尝试仅使用element.attr()
更新图形,请参见: http://jsfiddle.net/rh5fz92q/
Try to update only graphic using element.attr()
, see: http://jsfiddle.net/rh5fz92q/
plotOptions: {
pie: {
point: {
events: {
mouseOver: function(e){
this.defaultR = this.graphic.r;
this.graphic.attr({
r: 200
});
},
mouseOut: function(e){
this.graphic.attr({
r: this.defaultR
});
}
}
}
}
},
这篇关于在高图中更改鼠标悬停点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文