A Treemap in Tableau is a visualization that displays hierarchical data using nested rectangles, where the size and color of each rectangle represent different measures, making it easy to compare values across categories and sub-categories in a limited space. It is especially useful for understanding proportions and identifying the most significant contributors within a dataset.
- Uses rectangles to represent data values
- Shows part-to-whole relationships
- Works well for hierarchical data
- Helps identify the largest and smallest categories
- Makes efficient use of screen space
Implementing
- Open the Tableau tool and connect a dataset into it.
- Drag and drop the one sheet of the connected dataset.
- Click on sheet1 to open the tableau worksheet.
- Upon clicking Sheet1, you will see the entire dataset's attributes on the left side and a worksheet for work.
๐ ImageTo draw a treemap you have to select a minimum of two attributes (one in the row and one in the column) by drag and drop then select the chart option as a treemap.
Example 1: In this example, you can use the following steps to draw a treemap.
- Drag and drop the date field in column and Ship Mode field in row.
- Apply marks by color of discount field.
- Choose the chart as tree map.
๐ ImageExample 2: In this example, you can use the following steps to draw a treemap.
- Drag and drop the date field in column and market field in row.
- Apply marks by color of sales field.
- Choose the chart as treemap.
- Then, use the concept of hierarchy and its expanded form.
๐ ImageExample 3: In this example, you can use the following steps to draw a treemap.
- Drag and drop the Category with Sub-category field in column and Region field in row.
- Apply marks by color of profit field.
- Choose the chart as treemap.
- Apply marks by the label of profit.
๐ Image