Framer tutorial · 5 steps · no code

How to add a sunburst chart to your Framer site (no code)

A sunburst chart shows a total that splits into levels. The inner ring is the top level, and each ring outward breaks its parent into smaller parts. Sunburst Chart is a free Framer component that draws the rings for you: you type one line per item with its path and value, and it adds up every level and works out the shares.

It suits budgets, site traffic, time tracking or any total that has groups inside groups. Visitors can hover a segment to see its path to the center, press a branch to zoom in, and go back with the center or Esc. This guide takes you from the Marketplace page to a published chart. You can also try the live demo first.

Sunburst Chart Framer component on a dark card showing a three ring budget chart with the Marketing and Paid ads path highlighted, a tooltip reading Paid ads 19 percent, the value 79K in the center and a legend of four teams
What you will build: the free Sunburst Chart component on a Framer page. Get it on the Framer Marketplace.

01Get the free component from the Marketplace

Open Sunburst Chart on the Framer Marketplace. It is a free component, so there is nothing to buy. Copy its Component URL from the page.

No Framer account yet? Create one for free.

02Drop it on the canvas

Open your project in Framer and paste the Component URL onto the canvas with Cmd/Ctrl + V. Clicking the link in a browser only shows version info, so it has to be pasted into Framer.

Component URL
https://framer.com/m/SunburstChart-NdowTrzhF1S2.js@6T5UVO2X6j2pPtklHvZ5

The chart arrives with sample budget data already on it, so you can see the rings, legend and tooltip before you change anything. Its width follows the space you give it and its height adjusts on its own. A width of about 760 px suits it well: with at least 560 px of inner width the legend sits beside the chart, and in narrower spaces it moves below.

03Type your data: one line per item

Select the chart and open the property panel on the right. Your data lives in one text box called Data. Each line is a path with slashes, then a colon, then a number:

Data, one line per item
Marketing / Paid ads / Search: 42000 Marketing / Paid ads / Social: 28000 Marketing / Content / Blog: 14000 Product / Engineering / Mobile: 38000

The slashes make the levels: Marketing is the inner ring, Paid ads sits outside it and Search outside that. A few rules keep the numbers simple:

  • Parents add up their children, so you never total anything by hand.
  • A number typed on a parent line is ignored when that parent has children.
  • If you write the same path twice, the two numbers are added.
  • You can use up to 300 lines and 6 levels. Rings sets how many levels show at once, from 1 to 4, and the deeper ones open when people zoom in.

Order is As Written or Largest First. To format the numbers, use Prefix (a currency sign, for example), Suffix (h, pts, users), Short Numbers, which shows 42,000 as 42K, and Decimals, which appears when Short Numbers is off. Numbers picks the separators, and Big Number sets the center to Value or Percent.

04Set how it reacts and how it looks

First, what visitors can do. Hover Detail lights the path from a segment to the center and shows its name, value and share in the middle. Click to Zoom opens a branch when a segment is pressed. Tooltip shows or hides the small tooltip, and Path shows or hides the path above the chart. Legend turns the legend on or off, Legend Side sets it to Auto, Right or Bottom, and Arc Labels puts names on segments that have room for them.

To open the chart in a particular state, type a name or a path into Start Zoomed (for example Marketing) to open that branch from the start, or into Spotlight (for example Marketing / Paid ads) to keep one segment highlighted.

Then the look. Theme is Midnight (dark), Paper (warm) or Snow (white). Palette is Aurora, Ember, Ocean, Mono or Custom: each top branch gets one color and the levels below use lighter shades of it. Mono adds a Mono Color, and Custom opens Custom Palette with six colors. Shading sets how much lower levels fade.

For shape, try Center Size, Gap, Corners, Start Angle and Chart Size. For the frame, Radius, Padding and Border. Switch Colors to Custom to set your own Background, Text, Muted Text and Border colors under Custom Colors. Title Font, Number Font and Font set the type, Text Scale resizes all the text together, and Labels lets you rename the built-in words such as Total and Back.

05Publish

Hit Publish as usual. The chart opens once when it scrolls into view, then stays still until someone zooms. Animate and Duration control that motion, and you can switch it off. Keyboard users can Tab through the legend and press Enter to open a branch, and Esc goes back. Visitors can explore the chart but cannot change your numbers. When we release an update to the component, Framer shows an Update button on it.

Property panel reference

These are the controls you will use most. Names match the property panel exactly.

ControlWhat it doesOptions or range
DataThe data: one line per item, a path with slashes, a colon, then a number.Up to 300 lines, 6 levels deep
RingsHow many levels show at once; deeper levels open on zoom.1 to 4
OrderSorts the segments as written or by size.As Written, Largest First
Hover DetailLights the path to the center and shows name, value and share in the center.On or off
Click to ZoomOpens a branch when pressed; the center, the path or Esc goes back.On or off
TooltipShows or hides the small tooltip.Show or Hide
Start ZoomedOpens one branch from the start.A name or path, such as Marketing
SpotlightKeeps one segment highlighted from the start.A name or path, such as Marketing / Paid ads
LegendShows the legend; Legend Side places it.Show or Hide; Auto, Right, Bottom
Arc LabelsNames on segments that have room for them.Show or Hide
Big NumberWhat the center number shows.Value, Percent
Prefix and SuffixText before and after each number.Any text, such as $ or h
Short NumbersShortens large numbers.42K or 42,000
ThemeThe overall look.Midnight, Paper, Snow
PaletteOne color per top branch; lower levels use lighter shades.Aurora, Ember, Ocean, Mono, Custom
ShadingHow much lower levels fade from their branch color.0 to 100%
Center SizeSize of the hole in the middle.15 to 70%
GapSpace between segments.0 to 12 px
CornersSegment corner rounding.0 to 24 px
Start AngleWhere the first segment begins.-180 to 180°
Chart SizeThe largest the chart may grow; it shrinks in narrow layouts.160 to 900 px
AnimateOpens once when scrolled into view and glides when zooming.On or off

Swipe sideways to see all three columns.

Where to use it

  • Budget breakdown. Split a yearly budget into teams, channels and line items, and let people zoom into the team they care about.
  • Site traffic. Show visits by source, then by campaign or page, with Short Numbers on so large counts stay short.
  • Time tracking. Break hours into projects and tasks, with Suffix set to h.
  • Report pages. Use Start Zoomed or Spotlight so the chart opens on the branch your text is talking about.

FAQ

How many levels can a sunburst chart have?

Your data can go 6 levels deep. Rings sets how many levels show at once, from 1 to 4, and the deeper levels open when someone zooms into a branch.

Do I need to add up the totals myself?

No. Parents add up their children on their own. A number typed on a parent line is ignored when it has children, so only the lowest lines need numbers.

How do visitors zoom back out?

They can press the center, press the path above the chart, or press Esc. Turn Click to Zoom off if you want a chart that only highlights.

Can visitors change the numbers?

No. They can explore the chart, but the numbers only change when you edit Data in the property panel.

Can visitors use it with a keyboard?

Yes. The legend rows, the path and the center are real buttons. Tab moves between them, Enter opens a branch and Esc goes back. If you hide the legend, a list that only takes keyboard focus stays in place.

Is the sunburst chart really free?

Yes. Sunburst Chart is a free component on the Framer Marketplace.

Need help? Email us — custom edits from $75/hr.

hello@brandingupstudio.com