sag*_*rtu 4 javascript svg highcharts highstock
小提琴http://jsfiddle.net/n3e49ws2/1/使用highcharts库v4.2.7.在这个小提琴中,在选择任何数据点时,观察到selectE事件处理程序的"this"上存在"pointAttr"属性.
point: {
events: {
select: function() {
if (this.pointAttr)
alert("pointAttr exists.");
else
alert("pointAttr does not exist.");
}
}
}
Run Code Online (Sandbox Code Playgroud)
另一方面,小提琴http://jsfiddle.net/n3e49ws2/使用最新的highcharts库5.0.0.在这里,我无法为select事件处理程序获取"this"的"pointAttr"属性.为什么要做出这种改变?是否有"pointAttr"属性的替代方法,因为我想直接更改SVG点.