Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

56
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda