Treemap
A treemap fills a rectangle with smaller rectangles whose areas are proportional to their values. Rectangles can be nested inside larger groups, so a single view shows both how big each item is and which category it belongs to.
makechart.io is a chart maker that runs in your browser: paste or upload your table, bind the columns for area, name and category levels, and the treemap is laid out for you. Tune colors, labels and the legend, then export it as an image or share a link.
Data format
One row per item. Give each row a name and a numeric value for its area. Bind one or more category columns to nest items into groups; the first category is the top level, the next ones are sub-levels.
| Field | Type |
|---|---|
面積required | Number Size of each rectangle (the area dimension). Values should be positive, since area cannot be negative. |
名稱required | Text or category Label of each rectangle, such as a product or file name. |
分類optional | Category (one or more columns) Grouping levels. Bind several columns, from the broadest to the most detailed, to build a hierarchy. |
顏色optional | Number or category Color of each rectangle. A category gives distinct colors, a number gives a color scale. |
| region | country | name | value |
|---|---|---|---|
| Asia | Japan | Tokyo | 37.4 |
| Asia | Japan | Osaka | 19.1 |
| Asia | India | Delhi | 31.0 |
| Europe | France | Paris | 11.0 |
| Europe | UK | London | 9.3 |
When to use
- Showing how a total splits into many parts, such as a budget by department and program.
- Hierarchical data with two or three levels, like category, subcategory and product.
- Spotting the largest items among dozens or hundreds of entries in limited space.
- Disk usage, market capitalization or portfolio breakdowns.
When not to use
- Comparing values precisely; people judge lengths better than areas, so a bar chart is more accurate.
- Data with negative values or values close to zero, which cannot be drawn as areas.
- Showing change over time; use a line or stacked area chart instead.
Tips
- Bind several columns to 分類 to nest the rectangles; leave it with one column for a flat treemap.
- Turn on zoom in the Style panel to click into a group and explore deeper levels.