4

I am working on drilldown/up chart of highchart.. i was able to trigger drill down event on a point click from outside highchart through:

chart.series[0].data[0].firePointEvent('click', event);

but i can't find any event which would trigger on the back button of the chart. See this fiddle I want to programatically trigger click event on "Back to Overview" event. Thank You in advance.

user3601092
  • 67
  • 1
  • 3
  • 6

1 Answers1

19

I think you can just call drillUp() function on your chart like this:

$('#drillUp').click(function() {
    if (chart.drilldownLevels.length > 0) {
        chart.drillUp();
    }
});

You need to check that chart.drilldownLevels array contains elements before calling this function. See updated demo.

Ilya Luzyanin
  • 7,910
  • 4
  • 29
  • 49