Treemaps display hierarchical data as nested rectangles, where each rectangle's area is proportional to its value. They are excellent for visualizing how a whole is divided into parts across multiple hierarchy levels, such as disk usage, budget breakdowns, or organizational structures. viz42 generates treemap representations from descriptions of your hierarchical data.
Mermaid does not have a treemap chart type. viz42 approximates treemaps using nested subgraphs. For precise treemap rendering, the exported data can be used with dedicated visualization libraries.
Use treemaps when you have hierarchical data with multiple levels or many categories. Pie charts work better for simple, flat compositions with few slices (3-7).
Yes. Describe the parent categories and their subcategories with values, and viz42 will generate a nested treemap showing both levels.