Basic sunburst

Budget by division, team and line item.

Chart type
Sunburst sunburst
Tier
Free Core
Collection
Sunburst
Render
Live, site theme
View .md Agent setup
LIVE/sunburst/basic1 of 3 in Sunburst

Configuration

Raw Standalone
const options = {
  chart: {
    height: 440,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "sunburst",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Budget k€",
      data: [
        {
          x: "Engineering",
          children: [
            {
              x: "Platform",
              children: [
                {
                  x: "Compute",
                  y: 420
                },
                {
                  x: "Storage",
                  y: 260
                },
                {
                  x: "Network",
                  y: 140
                },
                {
                  x: "Observability",
                  y: 90
                }
              ]
            },
            {
              x: "Product",
              children: [
                {
                  x: "Web app",
                  y: 310
                },
                {
                  x: "Mobile",
                  y: 220
                },
                {
                  x: "Growth",
                  y: 120
                }
              ]
            },
            {
              x: "Security",
              y: 160
            }
          ]
        },
        {
          x: "Go-to-market",
          children: [
            {
              x: "Sales",
              children: [
                {
                  x: "Americas",
                  y: 380
                },
                {
                  x: "Europe",
                  y: 240
                },
                {
                  x: "Asia Pacific",
                  y: 150
                }
              ]
            },
            {
              x: "Marketing",
              children: [
                {
                  x: "Paid",
                  y: 210
                },
                {
                  x: "Events",
                  y: 95
                },
                {
                  x: "Content",
                  y: 60
                }
              ]
            }
          ]
        },
        {
          x: "Operations",
          children: [
            {
              x: "Finance",
              y: 120
            },
            {
              x: "People",
              y: 105
            },
            {
              x: "Legal",
              y: 70
            },
            {
              x: "Facilities",
              y: 85
            }
          ]
        }
      ]
    }
  ],
  plotOptions: {
    sunburst: {
      innerSize: "30%"
    }
  },
  title: {
    text: "Budget by org"
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

const chart = new WestCoastCharts(document.querySelector('#chart'), options)
chart.render()