Reputation: 1
I am trying to implement Sunburst chart drilldown action conditionally on click event. Say if am doing a Shift+Click then I would like to change the clicked sector's color. And if I just do a Click then I would like to drilldown or up. The implemented code works fine, but it works only on the subsequent click/shift+click action, not during the first click.
Here's the implementation
Event: click: function (event) {
if (event.shiftKey) {
chartT.series[0].update({
allowTraversingTree: false
});
this.series.chart.redraw();
this.color = "blue";
} else {
chartT.series[0].update({
allowTraversingTree: true
});
this.series.chart.redraw();
chartT.series[0].data[0].doDrilldown();
}
}
Any help is appreciated. Thanks!
Upvotes: 0
Views: 258