小提琴http://jsfiddle.net/n3e49ws2/1/使用highcharts库v4.2.7。在这个小提琴中,在选择任何数据点时,观察到" pointAttr"属性存在于"这个"用于选择事件处理程序。
point: {
events: {
select: function() {
if (this.pointAttr)
alert("pointAttr exists.");
else
alert("pointAttr does not exist.");
}
}
}
另一方面,小提琴http://jsfiddle.net/n3e49ws2/使用最新的highcharts库5.0.0。在这,我无法得到" pointAttr"属于"这个"用于select事件处理程序。为什么要做出这种改变?是否有#34; pointAttr"属性,因为我想直接更改SVG点。
答案 0 :(得分:5)
要获取pointAttr,请使用this.series.pointAttribs(this, state);
,其中state
可以是""
,"hover"
或"select"
之一。