Sunburst Chart
What is a sunburst chart?
A sunburst chart (also called a sunburst diagram, sunburst graph, ring chart or multi-level pie chart) shows a hierarchy as rings around a centre. The centre is the whole. Each ring outwards is one level down, and each segment's angle is its share of the total, so you see the breakdown and the structure at once.

A sunburst chart of the space used on a laptop drive, by folder, in gigabytes (sample data). Try the interactive version.
- A sunburst chart shows a total broken down level by level, as rings around a centre.
- A segment's angle is its share: one that spans a quarter of the circle is a quarter of the total.
- Each child sits just outside its parent and fills no more than the parent's angle, so you can trace any branch outwards.
- Colour usually marks the top-level branch, getting lighter further out.
- Keep it to two to four levels, and add hover or click-to-zoom for the small outer segments. A one-ring sunburst is a donut chart.
How to read a sunburst chart
Read a sunburst chart from the centre outwards, judging each segment by how far round the circle it reaches.
- Start at the centre. It stands for the whole: all the disk space, the whole budget, every visitor. Many charts print the total there.
- Read the first ring. These are the top-level groups. Together they go all the way round, because together they make up the total.
- Compare angles, not areas. A segment's angle is its share of the total. A segment in an outer ring covers more area than an inner one with the same value, because the ring is bigger, so judge size by how far round the circle it reaches.
- Work outwards along a branch. Each segment's children sit directly outside it and share its angle between them. If a segment has no ring outside it, it has no children: that branch ends there.
- Use colour to keep your place. Most sunburst charts give each top-level branch its own colour and use lighter shades of it further out, as the charts on this page do. Check the key, because some charts use colour for something else, such as growth or a category.
- Hover or click for detail. Small outer segments rarely have room for a label. On an interactive chart, hovering shows the exact value and share, and clicking a segment zooms into that branch.
A worked example: what's filling a laptop drive
The chart at the top of this page shows 640 GB of used space on a 1 TB laptop drive, split into five top-level folders and then into subfolders. The figures are invented for this example, with sizes typical of a family laptop. Files and folders are the job the Sunburst tool in the first published studies was built for (see Sources).
| Top-level folder | Size (GB) | Share of used space | Split into |
|---|---|---|---|
| Videos | 220 | 34% | Family 120 (2024: 70, 2025: 50); Projects 100 (Drone 60, Recordings 40) |
| Photos | 150 | 23% | Phone 90 (2024: 40, 2025: 50); RAW 60 (Holiday 35, Studio 25) |
| Apps | 110 | 17% | Games 70, Creative 25, Utilities 15 |
| System | 100 | 16% | OS 45, Caches 30, Swap 25 |
| Documents | 60 | 9% | Work 35 (Reports 20, Data 15); Personal 25 |
| Total | 640 | 100% (shares rounded, so they add up to 99%) |
Three things stand out from the rings:
- Videos and photos take more than half the drive. Together they hold 370 of the 640 GB, 58%.
- Equal values can look unequal. Games (70 GB, in the second ring) and the 2024 family videos (70 GB, in the third ring) are the same size. Their angles match even though the outer one covers more area.
- Documents are small. At 60 GB, they are under a tenth of the used space.
Use the table to look up a folder's size. The chart shows the shape of the whole hierarchy in one look: which branches are big, how deep each goes, and where the space sits within each one.
How to describe a sunburst chart
Use this template when you report a sunburst chart:
Of the [total and unit] in [the whole], [largest group] makes up [share], mostly [its largest part] at [value]. [Second group] follows at [share], and [smallest group] is only [share].
Worked example: "Of the 640 GB used on this drive, videos make up 34%, mostly family videos at 120 GB. Photos follow at 23%, and documents are only 9%."
How does a sunburst chart work?
A sunburst chart is a tree of data drawn in a circle, laid out in four steps. Charting tools usually run them for you, but they explain what has gone wrong when a branch doesn't line up.
- Total each branch. Only the outermost items (the leaves) need a value. Each parent's value is the sum of its children: A1 is a + b = 30, and A is A1 + A2 = 50.
- Give each level a ring. The root goes in the centre, level 1 in the first ring, level 2 in the second, and so on. Every ring is the same width.
- Share out the angle. The full circle stands for the root's total. Going round from the top, each item gets an angle in proportion to its value, starting where the item before it ended.
- Keep children inside their parent's angle. A's children start where A starts and together end where A ends. That is what lines each branch up from the centre outwards.
Because every item has a start and an end on one scale from zero to the total, a sunburst chart can be drawn as columns on a polar chart: one column per item, with its start and end giving its angle, and its level giving its distance from the centre.
When to use a sunburst chart
Use a sunburst chart when a total breaks down over several levels and you want to show both the shares and the structure. Typical uses:
- storage and files: disk space by folder and subfolder;
- money: a budget by department, team and cost type, or revenue by region, country and product;
- websites and apps: visits by section and page, or time spent by feature;
- classifications: a population split by group, subgroup and type.
| Chart | Best for |
|---|---|
| Sunburst chart | A total split over two to four levels, when the structure matters as much as the sizes |
| Treemap | Many items in a hierarchy, packed into a rectangle; better for comparing sizes, weaker at showing levels |
| Icicle chart | The same hierarchy as rows of rectangles: sizes and labels are easier to read, but it needs a wider space |
| Donut chart or pie chart | One total split into a few parts, with no deeper levels |
| Bar chart (stacked) | Comparing several totals and their parts side by side, with exact values easy to read |
| Sankey diagram | A total that flows through stages, splitting and merging, rather than a fixed hierarchy |
Sunburst chart vs treemap
Both show the same kind of data: a total broken down into a hierarchy, with size showing value. A treemap nests rectangles inside rectangles; a sunburst chart puts each level in its own ring. In a 2000 study that compared the two for finding and comparing files and folders, people tended to answer more questions correctly with the sunburst, especially when they first used it, and strongly preferred it because it showed the structure better (Stasko and colleagues, see Sources). A treemap wastes no space, so it suits hierarchies with hundreds of items, where a sunburst's outer rings would be too thin to read.
Icicle chart: the sunburst chart unrolled
An icicle chart (also called an icicle plot or icicle diagram) shows the same hierarchy as a sunburst chart, but with rectangles instead of rings. Cut the rings at 12 o'clock and straighten them out: the centre becomes a bar across the top, each ring becomes a row below it, and each item sits directly under its parent, as wide as its share of the total. Hanging down from the top, the rows look like icicles. The icicle plot was first described in 1983, as a way to show the results of hierarchical clustering (Kruskal and Landwehr, see Sources).
An icicle chart is often easier to read than a sunburst chart:
- Sizes are widths on one straight scale. Readers compare lengths more accurately than angles, and an item of a given value is the same width on every row. On a sunburst chart, an outer segment covers more area than an inner one of the same value.
- Labels fit. Text runs straight along each rectangle instead of round a curve. Turn the chart on its side, with the root on the left and one column per level, and long names get the full width of a column.
- Deep hierarchies stay readable. Every level gets a row of the same height, and the chart can grow downwards or scroll, while a sunburst chart has to squeeze every level into one circle.
A sunburst chart is still the more compact choice. It fits a square space, such as a dashboard tile, and its rings make the whole-to-part structure stand out at a glance. An icicle chart needs a wide or tall space to give small items room.
Both charts come from the same layout: each item has a start and an end on a scale from zero to the total, and its level picks the ring or the row. To draw an icicle chart, plot each item as a rectangle from its start to its end, one row per level, in the same way the treemap guide draws its boxes with a rectangle series.
Common sunburst chart mistakes
Most sunburst chart mistakes come from asking the rings to hold more levels, items or labels than they have room for.
- Too many levels. Each extra ring splits the segments into thinner slivers. Show two to four levels, and let readers click to zoom into deeper branches.
- Children that don't add up. If a parent's children add up to more than the parent, the chart can't be drawn honestly. If they add up to less, the gap is unexplained. Add an "Other" item so every branch adds up.
- Negative values. An angle can't be negative, so a sunburst chart can't show losses or refunds. Use a bar chart for data that goes below zero.
- Colour that means nothing. Random colours on every segment hide the branches. Colour by top-level branch and shade it outwards, or colour by one clear measure, and say which.
- Labels on every slice. Small outer segments have no room for text. Label only the segments wide enough to hold it, and show the rest on hover.
- A flat list in rings. If the data has only one level, a sunburst chart is a donut chart, and a sorted bar chart is usually clearer still.
How to create a sunburst chart in JavaScript, React or Angular
The demo below draws the laptop-drive example as three rings round a centre, and redraws the rings from whichever segment you click. SciChart.js has no separate sunburst series: a short layout helper turns your tree into rings, and each ring is drawn as a polar column series. Try it: hover over a segment to highlight its branch and see its size in the centre, click a segment to zoom into it, and click the centre to go back.
Here is the code for this chart. The data is plain JSON: a tree in which each item has a name and either a value or a list of children:
{
"name": "Used space",
"children": [
{ "name": "Videos", "children": [{ "name": "Family", "value": 120 }, { "name": "Projects", "value": 100 }] },
{ "name": "Apps", "children": [{ "name": "Games", "value": 70 }, { "name": "Utilities", "value": 15 }] }
]
}
- JavaScript
- React
- Angular
// Create a JavaScript sunburst chart with SciChart.js: one polar column series per ring (hierarchy level)
const {
SciChartPolarSurface,
PolarNumericAxis,
PolarColumnRenderableSeries,
XyxDataSeries,
NumberRange,
EPolarAxisMode,
EAxisAlignment,
EColumnMode,
EDataPointWidthMode,
EPolarLabelMode,
EColumnDataLabelPosition,
EFillPaletteMode,
EStrokePaletteMode,
EMultiLineAlignment,
NativeTextAnnotation,
EHorizontalAnchorPoint,
EVerticalAnchorPoint,
CustomChartModifier2D,
EModifierType,
parseColorToUIntArgb,
SciChartJsNavyTheme
} = SciChart;
// One colour per top-level branch. Deeper rings use lighter tints of their branch's colour.
const BRANCH_COLORS = ["#F48420", "#50C7E0", "#30BC9A", "#E8336D", "#9B7BD4"];
// Mixes a "#RRGGBB" colour with white: amount 0 keeps the colour, 1 gives white
function tint(hex, amount) {
const channel = i => {
const c = parseInt(hex.slice(i, i + 2), 16);
return Math.round(c + (255 - c) * amount)
.toString(16)
.padStart(2, "0");
};
return `#${channel(1)}${channel(3)}${channel(5)}`;
}
// A node's value: its own value if it is a leaf, otherwise the sum of its children
function nodeValue(node) {
return node.children?.length ? node.children.reduce((sum, child) => sum + nodeValue(child), 0) : node.value ?? 0;
}
// Plain JavaScript, no SciChart: turns a JSON tree ({ name, value?, children? }) into rings of segments.
// rings[0] holds the root's children, rings[1] their children, and so on. Each segment runs from
// start to end on a 0..total scale, so its angle is in proportion to its value.
// Optional: colors (a Map from node to colour, to keep colours when drilling down) and basePath (the root's own path).
function buildSunburstRings(root, { branchColors = BRANCH_COLORS, colors = null, basePath = [] } = {}) {
const total = nodeValue(root);
const rings = [];
const visit = (node, depth, start, parentValue, branchIndex, path) => {
const value = nodeValue(node);
if (depth > 0) {
if (!rings[depth - 1]) rings[depth - 1] = [];
rings[depth - 1].push({
name: node.name,
path,
node,
depth,
value,
start,
end: start + value,
shareOfParent: value / parentValue,
shareOfTotal: value / total,
hasChildren: !!node.children?.length,
color: colors?.get(node) ?? tint(branchColors[branchIndex % branchColors.length], (depth - 1) * 0.3)
});
}
let childStart = start;
(node.children ?? []).forEach((child, i) => {
// The colour is set by the top-level branch, so a whole branch shares one hue
visit(child, depth + 1, childStart, value, depth === 0 ? i : branchIndex, [...path, child.name]);
childStart += nodeValue(child);
});
};
visit(root, 0, 0, total, 0, basePath);
return { total, rings };
}
// Colours each segment from its metadata, and fades the segments that aren't highlighted
class SunburstPaletteProvider {
strokePaletteMode = EStrokePaletteMode.SOLID;
fillPaletteMode = EFillPaletteMode.SOLID;
onAttached() {}
onDetached() {}
overrideFillArgb(xValue, yValue, index, opacity, metadata) {
return metadata.isDimmed ? metadata.dimArgb : metadata.argb;
}
overrideStrokeArgb() {
return undefined;
}
}
// Labels segments wide enough to hold text; hovering shows the rest
const segmentLabel = md => (md.shareOfTotal >= 0.04 ? md.name : "");
// Draws the rings: a centre disc for the current root, then one PolarColumnRenderableSeries per level
function drawSunburst(sciChartSurface, wasmContext, root, { units = "", centreColor = "#1C2A44", colors = null, basePath = [] } = {}) {
const { total, rings } = buildSunburstRings(root, { colors, basePath });
const segmentsByRing = [[{ name: root.name, path: basePath, node: root, depth: 0, value: total, start: 0, end: total, shareOfParent: 1, shareOfTotal: 1, hasChildren: true, color: centreColor, isCentre: true }], ...rings];
// Remove the previous rings (when drilling down or back up)
sciChartSurface.renderableSeries.asArray().forEach(rs => rs.delete());
sciChartSurface.renderableSeries.clear();
// Angle: 0..total all the way round. Radius: the centre disc is 0..1, ring n is n..n+1
sciChartSurface.xAxes.get(0).visibleRange = new NumberRange(0, total);
sciChartSurface.yAxes.get(0).visibleRange = new NumberRange(0, segmentsByRing.length);
const paletteProvider = new SunburstPaletteProvider();
const series = segmentsByRing.map((segments, level) => {
const metadata = segments.map(s => ({
...s,
isSelected: false,
isDimmed: false,
argb: parseColorToUIntArgb(s.color),
dimArgb: parseColorToUIntArgb(s.color, 70)
}));
const rs = new PolarColumnRenderableSeries(wasmContext, {
dataSeries: new XyxDataSeries(wasmContext, {
xValues: segments.map(s => s.start), // where the segment starts
x1Values: segments.map(s => s.end), // where it ends
yValues: segments.map(() => level + 1), // its outer radius
metadata
}),
columnXMode: EColumnMode.StartEnd,
dataPointWidthMode: EDataPointWidthMode.Range,
defaultY1: level, // its inner radius
stroke: "#0B1427",
strokeThickness: level === 0 ? 0 : 2,
paletteProvider,
dataLabels:
level === 0
? undefined
: {
style: { fontSize: 15, multiLineAlignment: EMultiLineAlignment.Center },
color: "#0B1427",
polarLabelMode: EPolarLabelMode.Parallel,
labelYPositionMode: EColumnDataLabelPosition.Position,
labelYPositionMultiplier: 0.5,
metaDataSelector: segmentLabel
}
});
sciChartSurface.renderableSeries.add(rs);
return rs;
});
return { root, total, units, series };
}
// Hover: highlights a segment, its parents and its children, and shows its value in the centre.
// Click: drills into a segment with children; click the centre to go back up.
class SunburstModifier extends CustomChartModifier2D {
wasmContext;
options;
data;
colors;
label;
sunburst;
history = [];
mouseDownPoint = null;
constructor(wasmContext, data, options = {}) {
super();
this.wasmContext = wasmContext;
this.options = options;
this.data = data;
// Work out every segment's colour once, from the full tree, so colours stay the same when drilling down
this.colors = new Map(buildSunburstRings(data).rings.flat().map(s => [s.node, s.color]));
this.label = new NativeTextAnnotation({
x1: 0,
y1: 0,
text: "",
textColor: "#FFFFFF",
fontSize: 16,
multiLineAlignment: EMultiLineAlignment.Center,
lineSpacing: 4,
horizontalAnchorPoint: EHorizontalAnchorPoint.Center,
verticalAnchorPoint: EVerticalAnchorPoint.Center
});
}
// Lets this modifier attach to a polar surface
get modifierType() {
return EModifierType.Chart2DPolarModifier;
}
onAttach() {
super.onAttach();
this.parentSurface.annotations.add(this.label);
this.show(this.data, []);
}
onDetach() {
this.parentSurface?.annotations.remove(this.label);
super.onDetach();
}
show(root, basePath) {
this.sunburst = drawSunburst(this.parentSurface, this.wasmContext, root, { ...this.options, colors: this.colors, basePath });
this.sunburst.basePath = basePath;
this.describe(null);
}
// Returns the segment under the mouse, or null
hitTestSegment(mousePoint) {
for (const rs of this.sunburst.series) {
const info = rs.hitTestProvider.hitTest(mousePoint.x, mousePoint.y);
if (info.isHit) return rs.dataSeries.getMetadataAt(info.dataSeriesIndex);
}
return null;
}
describe(segment) {
const { total, units, root } = this.sunburst;
const fmt = v => `${v.toLocaleString()} ${units}`.trim();
const back = this.history.length ? "\nClick to go back" : "";
if (!segment || segment.isCentre) {
this.label.text = `${root.name}\n${fmt(total)}${back}`;
} else {
const ofParent = segment.depth > 1 ? `\n${Math.round(segment.shareOfParent * 100)}% of ${segment.path[segment.path.length - 2]}` : "";
this.label.text = `${segment.path.join(" › ")}\n${fmt(segment.value)}\n${Math.round(segment.shareOfTotal * 100)}% of ${root.name.toLowerCase()}${ofParent}`;
}
// Highlight the segment's own branch: its parents (a prefix of its path) and its children (paths it prefixes)
const isRelated = md => {
if (!segment || segment.isCentre || md.isCentre) return true;
const n = Math.min(md.path.length, segment.path.length);
return md.path.slice(0, n).join("/") === segment.path.slice(0, n).join("/");
};
this.sunburst.series.forEach(rs => {
for (let i = 0; i < rs.dataSeries.count(); i++) {
const md = rs.dataSeries.getMetadataAt(i);
md.isDimmed = !isRelated(md);
}
});
this.parentSurface.invalidateElement();
}
modifierMouseMove(args) {
super.modifierMouseMove(args);
this.describe(this.hitTestSegment(args.mousePoint));
}
modifierMouseDown(args) {
super.modifierMouseDown(args);
this.mouseDownPoint = args.mousePoint;
}
modifierMouseUp(args) {
super.modifierMouseUp(args);
const start = this.mouseDownPoint;
this.mouseDownPoint = null;
if (!start || Math.hypot(args.mousePoint.x - start.x, args.mousePoint.y - start.y) > 5) return;
const segment = this.hitTestSegment(args.mousePoint);
if (segment?.isCentre && this.history.length) {
const previous = this.history.pop();
this.show(previous.root, previous.basePath); // back up one level
} else if (segment && !segment.isCentre && segment.hasChildren) {
this.history.push({ root: this.sunburst.root, basePath: this.sunburst.basePath });
this.show(segment.node, segment.path); // drill into this branch
}
}
modifierMouseLeave(args) {
super.modifierMouseLeave(args);
this.describe(null);
}
}
async function sunburstChart(divElementId) {
const { sciChartSurface, wasmContext } = await SciChartPolarSurface.create(divElementId, {
theme: new SciChartJsNavyTheme()
});
// Angular axis: the value scale round the circle, starting at 12 o'clock. Radial axis: the ring number.
sciChartSurface.xAxes.add(
new PolarNumericAxis(wasmContext, {
polarAxisMode: EPolarAxisMode.Angular,
axisAlignment: EAxisAlignment.Top,
startAngle: Math.PI / 2,
flippedCoordinates: true, // clockwise
isVisible: false
})
);
sciChartSurface.yAxes.add(
new PolarNumericAxis(wasmContext, {
polarAxisMode: EPolarAxisMode.Radial,
axisAlignment: EAxisAlignment.Right,
startAngle: Math.PI / 2,
isVisible: false
})
);
// { name, children: [{ name, value }] }: only the leaves need a value
sciChartSurface.chartModifiers.add(new SunburstModifier(wasmContext, getDiskUsageData(), { units: "GB" }));
return { sciChartSurface, wasmContext };
}
import { SciChartReact } from "scichart-react";
import {
SciChartPolarSurface,
PolarNumericAxis,
EPolarAxisMode,
EAxisAlignment,
SciChartJsNavyTheme
} from "scichart";
// buildSunburstRings, drawSunburst and SunburstModifier from the JavaScript tab, saved as sunburst.ts
import { SunburstModifier } from "./sunburst";
// initChart builds the chart; SciChartReact creates it, sizes it and cleans it up
const initChart = async (rootElement: string | HTMLDivElement) => {
const { wasmContext, sciChartSurface } = await SciChartPolarSurface.create(rootElement, {
theme: new SciChartJsNavyTheme()
});
// Angular axis: the value scale, clockwise from 12 o'clock. Radial axis: the ring number
sciChartSurface.xAxes.add(new PolarNumericAxis(wasmContext, {
polarAxisMode: EPolarAxisMode.Angular, axisAlignment: EAxisAlignment.Top,
startAngle: Math.PI / 2, flippedCoordinates: true, isVisible: false
}));
sciChartSurface.yAxes.add(new PolarNumericAxis(wasmContext, {
polarAxisMode: EPolarAxisMode.Radial, axisAlignment: EAxisAlignment.Right,
startAngle: Math.PI / 2, isVisible: false
}));
// { name, children: [{ name, value }] }: only the leaves need a value
sciChartSurface.chartModifiers.add(new SunburstModifier(wasmContext, getYourHierarchyData(), { units: "GB" }));
return { sciChartSurface };
};
export const SunburstChart = () => (
<SciChartReact initChart={initChart} style={{ width: "100%", height: 500 }} />
);
import { Component } from "@angular/core";
import { ScichartAngularComponent } from "scichart-angular";
import {
SciChartPolarSurface,
PolarNumericAxis,
EPolarAxisMode,
EAxisAlignment,
SciChartJsNavyTheme
} from "scichart";
// buildSunburstRings, drawSunburst and SunburstModifier from the JavaScript tab, saved as sunburst.ts
import { SunburstModifier } from "./sunburst";
@Component({
selector: "app-sunburst-chart",
standalone: true,
imports: [ScichartAngularComponent],
template: `<scichart-angular [initChart]="initChart" style="display: block; width: 100%; height: 500px"></scichart-angular>`
})
export class SunburstChartComponent {
// initChart builds the chart; scichart-angular creates it, sizes it and cleans it up
initChart = async (rootElement: string | HTMLDivElement) => {
const { wasmContext, sciChartSurface } = await SciChartPolarSurface.create(rootElement, {
theme: new SciChartJsNavyTheme()
});
// Angular axis: the value scale, clockwise from 12 o'clock. Radial axis: the ring number
sciChartSurface.xAxes.add(new PolarNumericAxis(wasmContext, {
polarAxisMode: EPolarAxisMode.Angular, axisAlignment: EAxisAlignment.Top,
startAngle: Math.PI / 2, flippedCoordinates: true, isVisible: false
}));
sciChartSurface.yAxes.add(new PolarNumericAxis(wasmContext, {
polarAxisMode: EPolarAxisMode.Radial, axisAlignment: EAxisAlignment.Right,
startAngle: Math.PI / 2, isVisible: false
}));
// { name, children: [{ name, value }] }: only the leaves need a value
sciChartSurface.chartModifiers.add(new SunburstModifier(wasmContext, getYourHierarchyData(), { units: "GB" }));
return { sciChartSurface };
};
}
Key points:
buildSunburstRingsdoesn't touch SciChart.js, so it works with any drawing code. It totals each branch, then gives every item astartandendon a scale from zero to the total, ring by ring. Colour comes from the item's top-level branch, lighter for each ring further out.- Each ring is one PolarColumnRenderableSeries with
columnXMode: EColumnMode.StartEnd. ItsXyxDataSeriesholds each segment's start (xValues), end (x1Values) and outer radius (yValues);defaultY1sets the inner radius. The centre is one more series: a single full-circle segment. - A palette provider colours each segment from its metadata and fades the ones that aren't highlighted. Labels are the series' data labels, left off segments under 4% of the total.
SunburstModifierextendsCustomChartModifier2Dand returnsEModifierType.Chart2DPolarModifieras itsmodifierType, which a polar chart requires. On mouse move it calls each ring'shitTestProvider.hitTest(x, y), which reports a hit only inside a segment; a click redraws the rings from the clicked segment, keeping its colours.
See it in the demo app: JavaScript sunburst chart · React sunburst chart · Angular sunburst chart
Go deeper: SciChart.js sunburst chart documentation, including an animated drill-down, the polar column series documentation, and the polar stacked column series for stacked values round a circle.
Frequently asked questions
What is a sunburst chart used for?
A sunburst chart is used to show a total broken down over several levels, such as disk space by folder and subfolder, a budget by department and team, sales by region, country and product, or website visits by section and page. It is most useful when you want to see the structure of a hierarchy and which branches take up the most, in one picture.
What is the difference between a sunburst chart and a donut chart?
A donut chart has one ring, so it shows how one total splits into parts. A sunburst chart adds more rings: each ring is one level of a hierarchy, and each segment sits just outside the part it belongs to. A sunburst chart with only one ring is a donut chart.
Is a sunburst chart better than a treemap?
Each is better at something different. A sunburst chart makes the levels of a hierarchy, and which item belongs to which, easy to follow. A treemap fills a rectangle with nested boxes, so it uses space better and can show many more items, but its structure is harder to see. Use a sunburst for a few levels with a clear structure, and a treemap for many items.
How many levels should a sunburst chart have?
Two to four levels is usually the most a sunburst chart can show clearly. Each extra ring makes the outer segments thinner and harder to label. If the hierarchy is deeper, show the top few levels and let readers click a segment to zoom into that branch.
What is an icicle chart?
An icicle chart, or icicle plot, is a sunburst chart unrolled into rows of rectangles. The whole is a bar across the top, each level of the hierarchy is a row below it, and each item sits under its parent, with a width in proportion to its value. Exact sizes and long labels are easier to read than on a sunburst chart, but the chart needs more room.
How do I make a sunburst chart in JavaScript?
Store the data as a tree, where each item has a name and either a value or a list of children. A layout step walks the tree and gives every item a start and end on a scale from zero to the total, ring by ring. With SciChart.js you draw each ring as a PolarColumnRenderableSeries on a polar chart, with a palette provider for the colours and the series' hit-test for hover and click. For React or Angular, pass the same setup to scichart-react or scichart-angular.
Sources
-
Stasko, J., Catrambone, R., Guzdial, M. and McDonald, K. (2000), An evaluation of space-filling information visualizations for depicting hierarchical structures. International Journal of Human-Computer Studies, 53(5), 663–694. The study that compared a Sunburst tool with a treemap on file and folder tasks; an earlier version is a Georgia Tech technical report.
-
Stasko, J. and Zhang, E. (2000), Focus+context display and navigation techniques for enhancing radial, space-filling hierarchy visualizations. IEEE Symposium on Information Visualization 2000, 57–65. Techniques for exploring the outer levels of a sunburst display.
-
Kruskal, J. B. and Landwehr, J. M. (1983), Icicle plots: better displays for hierarchical clustering. The American Statistician, 37(2), 162–168. The paper that introduced the icicle plot.
-
Cleveland, W. S. and McGill, R. (1984), Graphical perception: theory, experimentation, and application to the development of graphical methods. Journal of the American Statistical Association, 79(387), 531–554. The experiments showing that people judge positions and lengths more accurately than angles; area appears only in the paper's theoretical ranking, below angle.
-
Heer, J. and Bostock, M. (2010), Crowdsourcing graphical perception: using Mechanical Turk to assess visualization design. Proceedings of the SIGCHI Conference on Human Factors in Computing Systems (CHI 2010), 203–212. Repeats Cleveland and McGill's experiments and adds area judgements, which were less accurate than position, length or angle.