tic*_*tic 5 javascript highcharts
即使单击第二个系列中的一个点,我如何修改以下示例以获取第一个系列中的点值?我得到chart对象就足够了,但我不知道该怎么做(内部点mouseOut函数this是指point对象而不是chart对象)。
$(function () {
$('#container').highcharts({
plotOptions: {
series: {
cursor: 'pointer',
point: {
events: {
click: function () {
// here I want the y value of the point in the
// first series even in this function
// is invoked for the point in the second series
alert('value: ' + this.y);
}
}
}
}
},
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0]
},{
data: [135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}]
});
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1643 次 |
| 最近记录: |