Power BI How-To

How to make a sunburst chart in Power BI

Build a sunburst chart in Power BI: field wells, a worked example, when the native visual is enough, and how to generate the .pbiviz without code.

By · Founder & Reliability Engineer · Updated

A sunburst is a hierarchy drawn as rings: the centre is the root, each ring outward is one level deeper, and each arc's angle is its share of the parent. It suits data where the structure itself is the point, such as an organisation, a cost-allocation tree or a region → country → city breakdown with click-to-zoom.

Power BI has no native sunburst, and the decomposition tree shows one path at a time rather than the whole tree. This guide builds one from level columns, explains why ring count has a hard readability limit, and sets up click-to-zoom so a six-level hierarchy stays usable.

Step-by-step

  1. 1

    Shape the data for the sunburst chart

    One hierarchy column per level, plus a numeric Value column. Typically Level1, Level2, Level3, Level4, Value. In the finished visual those columns land in the Levels, Value, Colour wells, so name them that way from the start.

  2. 2

    Load a small sample into Power BI Desktop

    Import the five city rows with all three levels filled in. Keep two cities under one country (Berlin and Munich) so drilling into Germany has an outer ring to show.

  3. 3

    Describe the sunburst chart and generate the .pbiviz

    On VizForge, describe the chart in plain English and say what matters for this one: number of levels and the exact column order; click-to-zoom (re-centre on the clicked arc) or click-to-cross-filter the page; they behave differently; label rule: show on arcs above a minimum angle, outer ring only, or on hover only. The pipeline writes the TypeScript, type-checks it and packages a .pbiviz.

  4. 4

    Import the .pbiviz into Power BI Desktop

    In the Visualizations pane, open the three-dot menu, choose Import a visual from a file and select the .pbiviz. The visual appears in the gallery; add it to the page like any built-in chart.

  5. 5

    Bind the field wells

    Levels: Text columns in order, one per ring (Region, Country, City, Store). Value: Numeric measure: the angle of each arc. Colour: Optional: a text column to colour top-level arcs by.

  6. 6

    Check the first render, then format

    Blank wedges: a level column has BLANK or empty strings; replace them with 'Unassigned' in Power Query. Outer ring hair-thin: too many leaves. Zoom-on-click is the fix, not a smaller font. Then open the formatting pane and set inner radius (donut hole) size and ring thickness.

Field wells the generated sunburst chart exposes

After import, these are the data roles you drop fields into. The names come from the visual’s capabilities.json, which you can rename before packaging if your team uses different terms.

WellTakesNote
LevelsText columns in order, one per ring (Region, Country, City, Store).Every row must have a value at each level; a BLANK at level two produces an unlabelled wedge.
ValueNumeric measure: the angle of each arc.Leaves sum up to parents automatically; don't bind a pre-aggregated parent total.
ColourOptional: a text column to colour top-level arcs by.Children inherit the parent's hue shaded darker by default.

Worked example

Revenue by region, country and city for one quarter.

RegionCountryCityRevenue
EMEAGermanyBerlin820k
EMEAGermanyMunich540k
EMEAUKLondon1.3M
AmericasUSAustin960k
AmericasUSDenver410k

What the chart draws: Two inner arcs (EMEA 2.66M, Americas 1.37M), three country arcs around them, five city arcs outside. Clicking Germany re-centres the chart on Germany so Berlin and Munich become the inner ring.

Live preview

Live preview · sample dataDownload sample data (CSV) ↓
Compute$428KStorage$265KDatabases$198KNetworking$142KAnalytics$96KSecurity$74KSupport
Monthly cloud spend by product line — a treemap sizes each tile to its share of the bill. Rendered live from sample data — your generated visual uses your own model.

The AI alternative: Describe your sunburst chart in plain English and VizForge generates the .pbiviz, source included. 5 free credits on signup, no card required.

Generate a sunburst chart on VizForge →

Without code: what to put in the prompt

The generator turns a description into the TypeScript, so the description is where the decisions live. For a sunburst chart, say:

  • Number of levels and the exact column order.
  • Click-to-zoom (re-centre on the clicked arc) or click-to-cross-filter the page; they behave differently.
  • Label rule: show on arcs above a minimum angle, outer ring only, or on hover only.
  • Colour inheritance: children shaded from the parent, or a categorical palette per ring.
  • What the centre shows: the root total, the current zoom level's name, or nothing.

Example VizForge prompt

Sunburst with 4 levels: region, country, city, store. Size rings by revenue. Use categorical colors for regions; shade child segments darker toward the outside. Click-to-zoom into a segment.

Customise it: formatting options worth exposing

Anything you name as adjustable becomes a card in Power BI’s formatting pane, which a report theme can then set for every copy of the visual. For a sunburst chart the options that earn their place are:

  • Inner radius (donut hole) size and ring thickness.
  • Minimum arc angle that still gets a label.
  • Arc padding and corner rounding.
  • Shade step between levels when colour is inherited.
  • Breadcrumb or centre-label font when zoomed in.

For changes the pane doesn’t cover, edit settings.ts and visual.ts in the source that ships with the download and repackage; or refine on VizForge and get a v2 that keeps everything you didn’t mention.

When native Power BI is enough (as of November 2026)

Power BI has no native sunburst. The Decomposition tree is enough when a reader wants to drill one path at a time and read the numbers at each node; a pie or donut with a legend is enough for a single level. Choose a sunburst when the reader needs to see the whole tree's proportions at once and the hierarchy has three or more levels.

Limits of Marketplace sunburst chart visuals

Marketplace sunbursts tend to cap the number of levels, fix the label rule and decide for you whether a click zooms or filters. Colour is usually a palette per level with no way for a report theme to take over, and several enforce a row limit on the free tier. None lets you add a tooltip measure beyond the ones the vendor shipped.

The general trade-offs (per-user licensing, closed source, no new field wells) are the same for every chart type; see VizForge vs Microsoft Marketplace visuals for the full comparison.

Download, install and first render

The download is a standard .pbiviz plus the TypeScript source. Import it in Power BI Desktop (Visualizations pane → three dots → Import a visual from a file), add it to the page and bind the wells above. Then check the sunburst chart against this list before you connect the full dataset:

  • Blank wedges: a level column has BLANK or empty strings; replace them with 'Unassigned' in Power Query.
  • Outer ring hair-thin: too many leaves. Zoom-on-click is the fix, not a smaller font.
  • Angles that don't match the numbers: a parent total was bound as the Value instead of leaf values.
  • Clicking an arc filters the page instead of zooming (or vice versa): the behaviour is a setting, check it before the demo.

When to use a sunburst chart

  • Organizational hierarchy (company → division → team → person)
  • Revenue composition with drilldown (region → country → city → store)
  • Decision taxonomy (question → branches → leaf outcomes)
  • Taxonomic classification (kingdom → phylum → class → order)
  • File system or cost-attribution breakdown

Frequently asked questions

Will the visual work in Power BI Service, Premium and embedded reports?

Yes. A .pbiviz is a standard Power BI custom visual and renders the same in Desktop, the Service, Premium and Premium per User capacities, and embedded scenarios. Tenant admins can restrict custom visuals to certified or organisational ones; if yours does, publish the .pbiviz as an organisational visual rather than importing it per report.

What if I need to change the visual later?

Two paths. Refine on VizForge with an instruction such as "add a target line" and get a v2 .pbiviz that keeps everything you didn't mention; or open the TypeScript source that ships with every download in VS Code, edit it and repackage with pbiviz package.

How does click-to-zoom work?

Click any ring segment and the visual re-renders that segment as the new center, filtering the report to its descendants. Click the center to zoom back out.

Can I show labels on the outer ring?

Yes. Large outer segments show labels automatically; small ones show on hover. Prompt for 'always show labels' if you want them all visible.

What's the max number of rings?

6 is readable; beyond that, outer rings become hair-thin. For deep hierarchies, use click-to-zoom to explore depth instead.

Sunburst vs. treemap — which should I pick?

Sunburst when hierarchy structure matters (org charts, decision trees). Treemap when proportions matter and space efficiency is paramount. Both available from VizForge.

Put your sunburst chart on a designed page

Free Design Studio page layouts. Download the background, theme and PBIP project, then import the visual into the slot.

Design the page around it, free

A custom visual looks best on a designed page. The free VizForge Design Studio lays out a branded report page at Power BI’s pixel size and exports the background image, a theme JSON and a PBIP project. No signup.

Open the free Design Studio →

Guides for related charts

VizForge — AI-generated Power BI custom visuals.

Make the report.
Then make it yours.

The Design Studio, templates and tools are free with no account (exports carry a small VizForge mark until you sign in). Sign up when you want AI: 5 credits on us, no card.

Generated visuals are type-checked and built before you download them; one that fails the quality SLA refunds its credits. See all features or pricing.