Appearance
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
| Name | Default | Description | Type |
|---|---|---|---|
| data | {} | The dataset | Object |
| color | #4E8EBA | The color for the arcs | String | Function |
| highlighted | null | The highlighted node | Object |
| highlightColor | null | The color for highlighted | String |
| valueKey | value | The property to use as value | String |
| idKey | id | The property to use as id | String |
| depth | null | The number of steps to show | Number |
Shape
Leave empty the columns if the row does not have that level.
| level1 | level2 | level3 | name | value |
|---|---|---|---|---|
| flare | flare | 100000 | ||
| flare | analytics | flare.analytics | 5000 | |
| flare | analytics | cluster | AgglomerativeCluster | 3938 |
Events
| Event | Argument | Description |
|---|---|---|
@highlighted | { target, data } | Emitted section is hovered |
Dependendencies
d3