Is there a way to modify the code below so that I can retrieve the value of the point in the first series even when clicking on a point in the second series? I only need access to the chart
object, but I'm not sure how to achieve this since within the mouseOut
function, this
refers to the point
object and not the chart
object.
$(function () {
$('#container').highcharts({
plotOptions: {
series: {
cursor: 'pointer',
point: {
events: {
click: function () {
// I need to retrieve the y value of the point in the
// first series even if this function is called for a 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]
}]
});
});