score:1

Accepted answer

Yes, it is possible and simple. You need to use drilldown event callback function, call API request in it and use addSeriesAsDrilldown method - as in the example below:

    chart: {
        type: 'column',
        events: {
            drilldown: function(e) {
                if (!e.seriesOptions) {

                    var chart = this,
                        drilldowns = {
                            ...
                        },
                        series = drilldowns[e.point.name];

                    // Show the loading label
                    chart.showLoading('Simulating Ajax ...');

                    setTimeout(function() {
                        chart.hideLoading();
                        chart.addSeriesAsDrilldown(e.point, series);
                    }, 1000);
                }

            }
        }
    }

Live demo: https://jsfiddle.net/BlackLabel/e9m74kgp/

API Reference:

https://api.highcharts.com/highcharts/chart.events.drilldown

https://api.highcharts.com/class-reference/Highcharts.Chart#addSeriesAsDrilldown


Related Query

More Query from same tag