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

150
Vistas
Plotly sunburst sub-section custom color JavaScript

I'm working with plotly in JS, trying to draw a sunburst chart. Everything works, but i would like to make it so that the child sections on the chart each have a different color. I cant seem to figure it out, any help is extremely appreciated.

Here is how my sunburst looks:

enter image description here

Notice that "Enos" and "Noam" have the same color, I would like them to have either different colors, or at least different opacities.

Like so:

enter image description here

Here is my code:

        var data = [{
            "type": "sunburst",
            "labels": ["Eve", "Awan", "Seth", "Enos", "Noam", "Enoch"],
            "parents": ["", "Eve", "Eve", "Seth", "Seth", "Awan"],
            "values": [100, 20, 80, 60, 20, 20]
        }];
        var layout = {
            sunburstcolorway: ["#636efa", "#ef553b"]
        };
        Plotly.newPlot('myChart', data, layout)
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