Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

55
Views
Highcharts Sunburst Select or Drilldown conditionally

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!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!