# SmartVisuals Sunburst for Power BI

> Power BI sunburst chart and multi-level donut from levels or a parent-child table: click to zoom, search, labels that fit, 3 levels free; variance vs budget.

- Page: https://www.smartvisuals.io/visuals/sunburst
- Fields and settings: https://www.smartvisuals.io/visuals/sunburst/settings
- Microsoft Marketplace: https://marketplace.microsoft.com/en-us/product/smartvisuals.smartvisuals-sunburst?tab=overview
- Package: https://www.smartvisuals.io/downloads/smartvisuals-sunburst-1.0.1.0.pbiviz
- Price: Free tier for every viewer; premium $1.99 per user per month or $19 per user per year on Microsoft Marketplace, with a 30-day free trial. Premium works in edit mode without a licence; unlicensed viewers see the free tier, never a blocked visual.
- Certified by Microsoft: no
- Version: 1.0.1.0
- GUID (visualType and publicCustomVisuals): `smartvisualsSunburst4E84D48297B2A2110F98A60985538D5E`

## What is free

- **Sunburst and multi-level donut**: Each level a ring around the total, three levels deep. Centre size, start angle and the gap between arcs are yours; Levels Shown sets how many rings are drawn at once.
- **Levels or a parent-child table**: Level columns or a model hierarchy, or Node ID and Parent ID with a Label. Blank levels collapse, a child named like its parent draws once, orphans go under Unassigned.
- **Parent values you can check**: Subtotals from the model in Levels mode, so a ratio is right on every ring; the footnote says how parents were computed and the data-notes strip names orphans, cycles, duplicates and negative sizes.
- **Click to filter and zoom**: A click filters the report and zooms into the arc; the centre and the breadcrumb go back, hover lights the path, and bookmarks keep the zoom. Power BI's drill buttons are an option.
- **Search**: Type a name, accents ignored: the path lights up and the chart zooms to it.
- **Labels that fit the arc**: Name, value, % of parent, % of total and rank, radial or along the arc. Names shrink to 11 px or wrap to two lines; what still does not fit is left out whole, and numbers are never cut.
- **Colour**: By top-level branch, level, a level's value or a Color measure as a 2-stop gradient; a colour per branch, a colour-blind safe palette and fill patterns.
- **Centre with name and total**: The zoomed node's name and total, or nothing; hovering an arc shows its value and share there.
- **Power BI features**: Tooltips with the full path and report page tooltips, cross-filter and cross-highlight with Ctrl to add, bookmarks, context menu, five style templates, four themes, four fonts, on-object formatting and 20 languages.

## What premium adds

- **Variance vs comparison**: Every arc coloured favourable, neutral or unfavourable against budget or last year, the signed change with ▲ or ▼ in labels and tooltips, a neutral band and the favourable direction per branch or per node.
- **Change explained**: One to three sentences naming the branches that explain the change, the ranked contributors in the strip's tooltip and each arc's share of the change in its own.
- **Target markers**: The comparison drawn as a tick across every arc, so each one shows how far it got.
- **Depth beyond three levels**: Up to 8 level fields, or deeper with a parent-child table. Without a licence the third level keeps its full totals and a "+n levels" note.
- **Icicle and half circle**: The same partition laid out straight, left to right or top down, or as a half circle for a wide tile.
- **Custom centre content**: The Color measure, your own text or the zoomed node's image in the centre.
- **Top N and Others**: Keep the top N children of every node, fold those under a share of their parent, or keep the biggest movers against the comparison; the rest go into a hatched Others arc.
- **Small multiples and play over periods**: One sunburst per value of a field, up to 12 panels, and a play bar that steps through periods.
- **Colour scales and fx rules**: 3-stop and diverging gradients with typed minimum, centre and maximum, and conditional formatting (fx) for arc colours.
- **Table view and notes on nodes**: A table of every node with path, value, % of parent and variance, with CSV export, and a comment marker on nodes from a Notes measure.

## Fields

| Field | Internal name | Takes | Needed | What it is for |
| --- | --- | --- | --- | --- |
| Levels | `levels` | Column | Optional | The hierarchy as columns, top first (Region, Country, City); a model hierarchy works too |
| Node ID | `nodeId` | Column | Optional | Parent-child table: the node's own ID (cost centre, account, part) |
| Parent ID | `parentId` | Column | Optional | Parent-child table: the ID of the node's parent (blank for the top) |
| Label | `label` | Column | Optional | Parent-child table: the name shown for a node (else its ID) |
| Size | `size` | Measure | Optional | Area, angle or radius of each node; bar length in the tree |
| Color | `color` | Measure | Optional | Colours the nodes by a measure (gradient); the tree shows it as a second value |
| Comparison | `comparison` | Measure | Optional | Budget, target or prior period: variance, change explained, targets (premium) |
| Play axis | `play` | Column | Optional | Periods to play through (premium) |
| Small multiples | `facet` | Column | Optional | One chart per value, same scale (premium) |
| Image | `image` | Measure | Optional | A data:image URI per node (a text measure), drawn in tiles, circles and tree nodes |
| Tooltips | `tooltips` | Measure | Optional, up to 8 | Extra fields in tooltips |
| Favourable direction | `direction` | Measure | Optional | Per node: a positive value means higher is better, a negative one lower is better (premium, with Variance) |
| Notes | `notes` | Measure | Optional | A note per node (a text measure): a marker on the node, the text in the tooltip and the drawer (premium) |

## Format pane

Each card is a key under `visual.objects` in a PBIR visual.json; each setting is a property of it. Toggles take `true`/`false`, choices and text a value in single quotes (`'auto'`), numbers a `D` suffix (`12D`).

### Templates (`templates`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Style Template | `preset` | `none` (None (style defaults)), `executive` (Executive), `ibcs` (IBCS (Finance)), `minimal` (Minimal), `presentation` (Presentation), `print` (Print), `custom` (Custom) |
| Export (copy this text) | `export` | Text |
| Import (paste a template) | `import` | Text |
| Applied | `applied` | Text |

### Hierarchy (`hierarchy`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Levels Shown | `levels` | Number |
| Sort Siblings | `sort` | `auto` (Follow the Power BI sort, else largest first), `desc` (Largest first), `asc` (Smallest first), `name` (Name), `data` (Data order) |
| Merge a Child Named Like Its Parent | `mergeSameName` | On / off |
| Collapse Blank Levels | `collapseBlanks` | On / off |
| Nodes Whose Parent Is Missing | `orphans` | `unassigned` (Collect under Unassigned), `roots` (Show as top-level nodes) |
| IDs Ignore Upper/Lower Case | `caseInsensitive` | On / off |
| Name of the Whole | `rootLabel` | Text |
| Color Measure Adds Up | `colorAdditive` | On / off |

### Navigation (`navigation`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Click to Zoom In | `zoom` | On / off |
| Breadcrumb | `breadcrumb` | On / off |
| Search Box | `search` | On / off |
| Hover Highlights the Path | `hoverFocus` | On / off |
| Animate Zoom | `animate` | On / off |
| Power BI Drill Buttons | `hostDrill` | On / off |
| Breadcrumb and Search Font Size | `fontSize` | Number |
| Breadcrumb Text Colour | `color` | Colour |

### Sunburst (`sunburst`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Layout | `shape` | `sunburst` (Sunburst (multi-level donut)), `halfCircle` (Half circle), `icicle` (Icicle) |
| Centre Size (%) | `innerRadius` | Number |
| Start Angle (°) | `startAngle` | Number |
| Gap Between Arcs (°) | `padAngle` | Number |
| Icicle Direction | `orientation` | `leftRight` (Left to right), `topDown` (Top down) |
| Arc Labels | `labelMode` | `auto` (Auto (fits the arc)), `radial` (Radial), `tangential` (Along the arc) |
| Centre Shows | `centre` | `total` (Name and total of the zoom root), `none` (Nothing), `measure` (The Color measure), `text` (Your text), `image` (The node's image) |
| Centre Text | `centreText` | Text |
| Centre Font Size | `centreSize` | Number |
| Centre Text Colour (empty = theme) | `centreColor` | Colour |

### Data Labels (`labels`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show | `show` | On / off |
| Name | `name` | On / off |
| Value | `value` | On / off |
| % of Parent | `pctParent` | On / off |
| % of Total | `pctTotal` | On / off |
| Rank Among Siblings | `rank` | On / off |
| Display Units | `displayUnits` | `auto` (Auto), `none` (None), `K` (Thousands), `M` (Millions), `B` (Billions) |
| Decimals (-1 = auto) | `decimals` | Number |
| Percent Decimals | `pctDecimals` | Number |
| Font Size | `fontSize` | Number |
| Second Line Font Size | `detailSize` | Number |
| Text Colour (empty = contrast) | `color` | Colour |

### Colours (`colors`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Colour By | `mode` | `branch` (Top-level branch), `level` (Level), `category` (A level's value), `measure` (The Color measure) |
| Level Whose Values Colour | `categoryLevel` | Number |
| Lighten Deeper Levels | `tint` | On / off |
| Measure Scale | `scale` | `twoStop` (2-stop gradient), `threeStop` (3-stop gradient), `diverging` (Diverging around a centre) |
| Low Colour | `low` | Colour |
| Centre Colour | `mid` | Colour |
| High Colour | `high` | Colour |
| Minimum (empty = data) | `min` | Text |
| Centre (empty = mean) | `centre` | Text |
| Maximum (empty = data) | `max` | Text |
| Level 1 | `level1` | Colour |
| Level 2 | `level2` | Colour |
| Level 3 | `level3` | Colour |
| Level 4 | `level4` | Colour |
| Level 5 | `level5` | Colour |
| Level 6 | `level6` | Colour |
| Level 7 | `level7` | Colour |
| Level 8 | `level8` | Colour |
| Value 1 | `cat1` | Colour |
| Value 2 | `cat2` | Colour |
| Value 3 | `cat3` | Colour |
| Value 4 | `cat4` | Colour |
| Value 5 | `cat5` | Colour |
| Value 6 | `cat6` | Colour |
| Value 7 | `cat7` | Colour |
| Value 8 | `cat8` | Colour |
| Value 9 | `cat9` | Colour |
| Value 10 | `cat10` | Colour |
| Value 11 | `cat11` | Colour |
| Value 12 | `cat12` | Colour |
| Colour-Blind Safe Palette | `colorBlind` | On / off |

### Variance vs Comparison (`variance`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Colour and Label by Variance | `show` | On / off |
| Colour By | `basis` | `percent` (Variance %), `absolute` (Variance) |
| Favourable When | `direction` | `higher` (Higher is better (revenue)), `lower` (Lower is better (cost)) |
| Branch 1 | `branchDir1` | `inherit` (As above), `higher` (Higher is better), `lower` (Lower is better) |
| Branch 2 | `branchDir2` | `inherit` (As above), `higher` (Higher is better), `lower` (Lower is better) |
| Branch 3 | `branchDir3` | `inherit` (As above), `higher` (Higher is better), `lower` (Lower is better) |
| Branch 4 | `branchDir4` | `inherit` (As above), `higher` (Higher is better), `lower` (Lower is better) |
| Branch 5 | `branchDir5` | `inherit` (As above), `higher` (Higher is better), `lower` (Lower is better) |
| Branch 6 | `branchDir6` | `inherit` (As above), `higher` (Higher is better), `lower` (Lower is better) |
| Branch 7 | `branchDir7` | `inherit` (As above), `higher` (Higher is better), `lower` (Lower is better) |
| Branch 8 | `branchDir8` | `inherit` (As above), `higher` (Higher is better), `lower` (Lower is better) |
| Branch 9 | `branchDir9` | `inherit` (As above), `higher` (Higher is better), `lower` (Lower is better) |
| Branch 10 | `branchDir10` | `inherit` (As above), `higher` (Higher is better), `lower` (Lower is better) |
| Branch 11 | `branchDir11` | `inherit` (As above), `higher` (Higher is better), `lower` (Lower is better) |
| Branch 12 | `branchDir12` | `inherit` (As above), `higher` (Higher is better), `lower` (Lower is better) |
| Neutral Band (±) | `threshold` | Number |
| Neutral Band In | `thresholdUnit` | `percent` (% of comparison), `absolute` (Units of the measure) |
| Variance in Labels | `labels` | On / off |
| Name of the Comparison | `comparisonName` | Text |
| Favourable Colour | `good` | Colour |
| Unfavourable Colour | `bad` | Colour |
| Neutral Colour | `neutral` | Colour |

### Change Explained (`explain`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Insights Strip | `show` | On / off |
| Position | `position` | `top` (Top), `bottom` (Bottom) |
| Contributors Listed | `count` | Number |
| Font Size | `fontSize` | Number |
| Text Colour | `color` | Colour |

### Targets (`targets`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Comparison as a Target Marker | `show` | On / off |
| Marker Colour | `color` | Colour |

### Top N and Others (`topN`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Rank By | `rankBy` | `size` (Size), `variance` (Largest variance (either way)), `unfavourable` (Most unfavourable variance) |
| Keep Top N per Level (0 = all) | `count` | Number |
| Fold Below % of Parent (0 = off) | `minShare` | Number |
| Others Label | `othersLabel` | Text |
| Small-Items Threshold (px) | `lod` | Number |

### Small Multiples (`smallMultiples`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Columns (0 = auto) | `columns` | Number |
| Panels | `max` | Number |
| Font Size | `fontSize` | Number |
| Panel Title Colour | `color` | Colour |

### Play Over Periods (`play`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Play Controls | `enabled` | On / off |
| Seconds per Period | `speed` | Number |
| Loop | `loop` | On / off |
| Opens At | `start` | `last` (The last period), `first` (The first period) |

### Table View (`table`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Table View Button | `show` | On / off |
| CSV Export Button | `export` | On / off |

### Legend (`legend`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show | `show` | On / off |
| Position | `position` | `bottom` (Bottom), `top` (Top), `right` (Right) |
| Orientation | `orientation` | `horizontal` (Horizontal), `vertical` (Vertical) |
| Title | `showTitle` | On / off |
| Title Text | `titleText` | Text |
| Font Size | `fontSize` | Number |
| Text Colour | `color` | Colour |

### Notes on Nodes (`nodeNotes`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show Notes | `show` | On / off |
| Marker | `marker` | Text |

### Borders (`borders`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Border Colour (empty = theme) | `color` | Colour |
| Border Width (-1 = theme) | `width` | Number |

### Data Notes (`notes`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Data-Notes Strip | `show` | On / off |
| Font Size | `fontSize` | Number |
| Text Colour | `color` | Colour |

### Footnote (`footnote`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Show | `show` | On / off |
| Source | `source` | Text |
| State the Methods | `showMethod` | On / off |
| Font Size | `fontSize` | Number |
| Text Colour | `color` | Colour |

### Tabs and Buttons (`controls`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Font Size | `fontSize` | Number |
| Text Colour | `color` | Colour |

### Accessibility (`accessibility`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Patterns (Tell Items Apart Without Colour) | `patterns` | On / off |
| Focus Outline Colour | `focusColor` | Colour |
| Focus Outline Width | `focusWidth` | Number |
| Minimum Text Size (0 = off) | `minFontSize` | Number |
| Reduce Motion | `reduceMotion` | On / off |

### Theme (`theme`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Theme | `selectedTheme` | `smartvisuals` (SmartVisuals), `dark` (Dark), `clean` (Clean (White)), `slate` (Slate) |
| Font | `font` | `inter` (Inter), `segoe` (Segoe UI), `arial` (Arial), `georgia` (Georgia) |
| Transparent Background | `transparentBg` | On / off |

### Branch Colours (`dataPoint`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Colour | `fill` | Colour |
| Label Colour | `labelColor` | Colour |
| Colour | `fillNode` | Colour |
| Label Colour | `labelColorNode` | Colour |
