Elysia Tools

Browse tools, examples, visual explainers, and topic guides from one clear workspace.

Top Categories

Hubs

语言
ZHDERUPTENFRES

Elysia Tools

导航

Data Visualization

Treemap Generator

· 最后更新:2026-06-30

Render hierarchical data as a squarified treemap where area encodes each item's share

详情

这个工具可以帮你完成什么

Parses a JSON hierarchy (name + children + leaf value), computes each node's total value, and tiles the canvas with the squarified-treemap algorithm so rectangles stay close to square. Cells are colored by top-level branch and can show labels, values, and percentages.

执行

运行这个工具

填写表单、运行工具,并在同一页面查看结果。

案例

与这个工具匹配的案例

相关内容

继续查看相关工具与专题

由 Elysia Tools 团队编写
Visualization69
Data Visualization57
Area50

Tool usage guide

详细了解工具的适用范围、支持能力及用户案例。

Key facts

分类
Data Visualization
输入类型
textarea, text, select, checkbox, range
输出类型
html
案例覆盖
4
API 可用
是

Overview

The Treemap Generator allows you to visualize complex hierarchical data as a clean, squarified treemap where the area of each rectangle represents its proportional share. By parsing a JSON structure of nested categories and values, the tool automatically calculates totals and tiles the canvas with color-coded branches, labels, values, and percentages.

When to use

  • When you need to display nested hierarchical data and show how sub-categories contribute to the overall total.
  • When comparing relative proportions of budget allocations, disk space usage, or market share across multiple levels.
  • When you want to generate a clean, squarified SVG treemap directly from a raw JSON data structure without writing code.

How it works

  1. 1Input your hierarchical data in JSON format, defining nodes with a name, optional children, or leaf values.
  2. 2Customize the visualization by selecting a color scheme, adjusting border width, and toggling labels, values, or percentages.
  3. 3The tool processes the hierarchy, computes node totals, and applies the squarified-treemap algorithm to render the SVG layout.

Use cases

  • Visualizing corporate budget distribution across departments and sub-teams.
  • Analyzing website traffic sources broken down by channel and device type.
  • Mapping product sales performance across different regions and product categories.

Examples

1. Department Budget Allocation

Financial Analyst

Background

A financial analyst needs to present the annual budget breakdown to stakeholders, showing how funds are distributed across engineering, marketing, and sales sub-teams.

Problem

Static spreadsheets fail to clearly communicate the relative scale of department budgets at a glance.

How to use

Paste the nested department budget JSON into the hierarchical data field, set the title to 'Annual Budget', and enable percentages.

{
  "chartData": "{\n  \"name\": \"Budget\",\n  \"children\": [\n    { \"name\": \"Engineering\", \"value\": 120 },\n    { \"name\": \"Marketing\", \"value\": 80 },\n    { \"name\": \"Sales\", \"children\": [\n      { \"name\": \"Direct\", \"value\": 50 },\n      { \"name\": \"Partner\", \"value\": 30 }\n    ]}\n  ]\n}",
  "chartTitle": "Annual Budget",
  "colorScheme": "default",
  "showLabels": true,
  "showValues": false,
  "showPercentages": true,
  "borderWidth": 2
}

Outcome

An interactive SVG treemap displaying the budget breakdown, with the engineering block occupying the largest area and sales split into direct and partner shares.

2. Disk Space Breakdown

System Administrator

Background

A system administrator wants to visualize which directories are consuming the most storage space on a server.

FAQ

What JSON format does the tool expect?

It expects a nested JSON object where each node has a 'name', and either a list of 'children' or a numeric 'value' for leaf nodes.

How are the colors assigned in the treemap?

Rectangles are grouped and colored based on their top-level parent branch using your chosen color scheme.

Can I display both raw values and percentages on the chart?

Yes, you can toggle the 'Show Values' and 'Show Percentages' options to display both on the rendered rectangles.

What is a squarified treemap?

It is a layout algorithm that tiles rectangles while keeping their aspect ratios close to 1:1, making them easier to compare.

Can I customize the spacing between the rectangles?

Yes, you can adjust the border width slider to increase or decrease the spacing between the tiled cells.

Home
Tools3212
Samples593
Visualizations471
Viewers103
Hubs239
Tags333
Images, Audio & Video657

Image, audio, and video processing, conversion, and optimization tools

Math, Date & Finance647

Calculators, numerics, date logic, statistics, and finance tools

Design & Color298

Color, layout, graphics, visual styling, and design helper tools

Text & Writing209

Writing, cleanup, formatting, extraction, and text analysis tools

Developer & Web193

Developer utilities, networking, web debugging, and automation helpers

Conversion & Encoding175

Format, file, archive, unit, and encoding conversion tools

Lead Generation Quiz Launch and Contact Handoff
Memorial Drafts: Family Review and Print Handoff
Private Habit Records: Backup, Restore and Sharing Review
Article to X and LinkedIn Drafts: Fact Review and Handoff
Markdown Interactive Deck Review and Offline Handoff

© 2026 Elysia Tools. All rights reserved.

DocsPricingAboutTerms of ServicePrivacy PolicyCookiesContact
Monitoring

Grafana Advanced Application Samples

Comprehensive Grafana samples covering advanced dashboard design, alerting configurations, data source integrations, and plugin development

Media

QR Code Samples

Sample QR code images for testing QR code reading and generation tools

Web Technologies

WebRTC Real-Time Communication Samples

Comprehensive WebRTC samples for peer-to-peer audio/video communication, data channels, screen sharing, and signaling server implementation

Data Visualization

D3.js Data Visualization Samples

Comprehensive D3.js data visualization examples including charts, maps, animations, and interactive visualizations

Data Visualization

Donut Chart Generator

Generate customizable donut charts (ring charts) from data with various styling options, perfect for showing proportions with a central space

Data Visualization

Icicle Chart Generator

Generate interactive icicle charts for hierarchical data visualization, perfect for displaying tree structures, file systems, and organizational hierarchies

Data Visualization

Org Chart Maker

Render hierarchical JSON into a vertical organizational chart with names and titles

Data Visualization

Pyramid Chart Generator

Generate pyramid charts for hierarchical structure visualization, perfect for organization charts, hierarchy levels, and proportional data

Problem

Text-based terminal outputs make it difficult to quickly identify the largest directories and their sub-folders.

How to use

Input the directory size hierarchy JSON, select the 'cool' color scheme, and enable both values and percentages.

{
  "chartData": "{\n  \"name\": \"Root\",\n  \"children\": [\n    { \"name\": \"usr\", \"value\": 45 },\n    { \"name\": \"var\", \"children\": [\n      { \"name\": \"log\", \"value\": 25 },\n      { \"name\": \"lib\", \"value\": 15 }\n    ]},\n    { \"name\": \"home\", \"value\": 60 }\n  ]\n}",
  "chartTitle": "Disk Usage (GB)",
  "colorScheme": "cool",
  "showLabels": true,
  "showValues": true,
  "showPercentages": true,
  "borderWidth": 3
}

Outcome

A clear visual map of disk usage where the 'home' directory is instantly recognizable as the largest consumer of space.