Skip to content
On this page

Charts > Sunburst Chart ​

The sunburst chart visually displays hierarchical data in concentric rings, conveying nested relationships through slices.

The Chart ​

Download example CSV
Copy HTML

Playground ​

Style
Color

Component API ​

This chart is built using SVG and d3. Each ring is a step in the hierarchy, starting from the center. Each segment of a ring is a node.

Data ​

Data should be in hierarchical structure

js
{
  name: "root",
  children: [
    {
      id: "data1",
      name: "Data 1",
      children: [
        {
          id: "data1-1",
          name: "Data 1-1",
          value: 57
        }
      ]
    },
    ...
  ]
}

Props ​

NameDefaultDescriptionType
data{}The datasetObject
color#4E8EBAThe color for the arcsString | Function
highlightednullThe highlighted nodeObject
highlightColornullThe color for highlightedString
valueKeyvalueThe property to use as valueString
idKeyidThe property to use as idString
depthnullThe number of steps to showNumber

Shape ​

Leave empty the columns if the row does not have that level.

level1level2level3namevalue
flareflare100000
flareanalyticsflare.analytics5000
flareanalyticsclusterAgglomerativeCluster3938

Events ​

EventArgumentDescription
@highlighted{ target, data }Emitted section is hovered

Dependendencies ​

d3