# How do I enter data for a tree, treemap or sunburst?

> These charts read nested data, so the Data tab shows an indented tree instead of a table. You add children to a node rather than rows to a list.

## Before you start

- A tree, treemap or sunburst chart open in the editor.

> **Careful:** Deleting a node deletes everything beneath it. The bin button says how many children will go with it — read that before you click.

> **Note:** Tree charts have no Value column, because their layout comes from the structure rather than from a number. Only treemaps and sunbursts size their nodes by value.

> **Tip:** If your hierarchy lives in a spreadsheet as flat parent-and-child rows, use the Import sub-tab instead. A mapping step lets you point your columns at Name, Parent and Value, and the tree is assembled for you.

> **Note:** The Nivo versions of these charts are edited as JSON rather than in this tree. Use the ECharts ones if you want the visual editor.

## Steps

1. Open the Data tab. Each row is one node, and how far it is indented is its depth. The top two levels are already open.
2. Click a name to rename it. For a treemap or sunburst there is also a Value column — that number is what sets the size of the block or segment.
3. Press the + at the end of a row to add a child inside that node. The parent opens automatically so you can name the new node straight away.
4. Use Add Root Node at the bottom for another top-level branch, and the chevron beside a name to fold a branch away while you work elsewhere.
5. To build a tree quickly, press Import from Text and paste an indented list — one node per line, a tab for each level of depth, and an optional tab and number after the name for its value.
6. Open the summary strip at the top to check the shape at a glance. It reports how many nodes you have and how deep the tree goes.

_Topics: hierarchy, treemap, sunburst_

---

Install Figma Charts: https://www.figma.com/community/plugin/1345221583582136577/figma-charts

More Figma Charts help: https://systergon.com/figma-charts/help
