From a drilldown config

Rings built from drilldown references instead of nested data.

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

Configuration

Raw Standalone
const options = {
  chart: {
    height: 420,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "sunburst",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Traffic",
      data: [
        {
          x: "Search",
          y: 46,
          drilldown: "s"
        },
        {
          x: "Social",
          y: 22,
          drilldown: "so"
        },
        {
          x: "Direct",
          y: 18
        },
        {
          x: "Email",
          y: 14,
          drilldown: "e"
        }
      ]
    }
  ],
  drilldown: {
    series: [
      {
        id: "s",
        data: [
          {
            x: "Organic",
            y: 30
          },
          {
            x: "Paid",
            y: 16
          }
        ]
      },
      {
        id: "so",
        data: [
          {
            x: "Video",
            y: 12
          },
          {
            x: "Forums",
            y: 6
          },
          {
            x: "Other",
            y: 4
          }
        ]
      },
      {
        id: "e",
        data: [
          {
            x: "Newsletter",
            y: 9
          },
          {
            x: "Lifecycle",
            y: 5
          }
        ]
      }
    ]
  },
  plotOptions: {
    sunburst: {
      innerSize: "0%"
    }
  },
  title: {
    text: "Traffic sources (%)"
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

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