
A treemap is a hierarchical chart used to display data as nested rectangles. Each rectangle represents a branch of the hierarchy and is sized proportionally to a quantitative variable. This layout is effective when dealing with large datasets that have a natural hierarchy, and where space efficiency is essential.
An example is showing sales data for different product categories and sub-categories within a company. The size of each rectangle can reflect total sales, and color can indicate another variable such as profit margin.