I'm using the AngularJS with Highcharts (using a highcharts directive).
I'm trying to give a chart a click event, so that when I click on the point I assign the (x,y) coords to a variable (say vm.selectedPoint). I then use this variable to construct another graph.
The problem is that it doesn't seem possible to extract the clicked point in a simple way. Say the click event function is defined as
vm.clickFunction = function(e) { console.log(this.point) };
then if I set plotOptions.series.events.click = vm.clickFunction, we have an issue with the component scope (of angularJS) conflicting with the Highcharts scope - 'this' isn't referring to the point on the graph I clicked.
I'm surprised I haven't found anywhere that refers to this. Does anyone have a suggestion?