I am using Highcharts wtih drilldown and here is my working FIDDLE.
How can I get the click event of the drill up button ? I have referred the Highcharts API but can't figure out how can I incorporate this into my code.
I want to do something like:
drillUp: function(){
//get point details by using something like this or this.point
//get series details by using something like point.series
}
You need to catch the event
. See the chart.events.drillup
API doc.
To get the series and points in the series you would do something like:
events: {
drillup: function (e) {
console.log(this);
console.log(this.options.series[0].name);
console.log(this.options.series[0].data[0].name);
}
}
Since you did not state which series or points you wanted this is the most general method.
Link to the updated working FIDDLE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With