有人可以帮我解决我的问题吗?
我有这个饼图,
当我将鼠标悬停在其上时,我需要更改点(段)
您能给我建议的最佳方式是什么?
也许是这样的,改变点,但我不知道该怎么做
plotOptions: {
series:{
point:{
events: {
mouseOver: function( e ){
console.log( this )
}
}
}
}
},
最佳答案
尝试使用 element.attr()
仅更新图形,请参阅: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
});
}
}
}
}
},
关于javascript - 更改 Highcharts 中的鼠标悬停点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18874440/