Building Treemaps

Treemaps let you display data in nested rectangles. You use dimensions to define the structure of the treemap, and measures to define the size and/or color of the individual rectangles.Treemaps are a relatively simple data visualization that can provide insight in a visually attractive format.
In Tableau, you create a treemap by first placing one or more dimensions on the Columns shelf and one or two measures on the Rows shelf. Then choose treemap from Show Me.
The treemap you will create in this exercise shows aggregated sales totals across a range of product categories. You then have two options for enhancing this basic treemap.
  1. Connect to the Sample - Superstore - English (Extract) data source, which is included with Tableau Desktop.
  2. Drag the Category dimension to Columns.
    A horizontal axis is created showing product categories.
  3. Drag the Sales measure to Rows.
    The measure is automatically aggregated as a sum and a vertical axis is created.
    Tableau displays a bar chart—the default chart type when there is a dimension on the Columns shelf and a measure on the Rows shelf.
  4. Choose the treemap chart type from Show Me:

    Tableau displays the following treemap:

    In this treemap, both the size of the rectangles and their color are determined by the value of Sales—the greater the sum of sales for each category, the darker and larger its box.
  5. Drag the Ship Mode dimension to Color on the Marks. In the resulting view, Ship Mode determines the color of the rectangles—and sorts them into three separate areas accordingly—and Sales determines the size of the rectangles:

  6. To examine another option to modify the treemap, click the Undo button to remove Ship Mode from view. For more information, see Undo and Redo.
  7. Drag the Profit measure to Color on the Marks card. Now Profit determines the color of the rectangles, and Sales is determining their size:

Treemaps cannot accommodate more than two measures—one to control size, the other to control color. Treemaps can accommodate any number of dimensions, but you can only use one dimension to diversify the view, by dragging it to color. Other dimensions can be used only to multiply the number of rectangles in the view. Dimensions cannot be displayed in a hierarchy.


  1. It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command.

    Tableau Online Training|
    SAS Online Training |
    R Programming Online Training|

  2. Nice, one thing I can share is that one can learn things easier and faster with a best class trainers who interact and explain, whether it is Online or classroom for this I can suggest the page
    Thank you guys have a bright future ahead :)

  3. it is wonderfull blog thanks for sharing
    SAS Certification

  4. Best R Programming Training in Bangalore offered by myTectra. India's No.1 R Programming Training Institute. Classroom, Online and Corporate training in R Programming
    r programming training

  5. Yes. You are absolutely right!!Excelr solutions is providing blockchain online training from the industry best trainers with over 15 years of experience. Enroll now
    blockchain online training

  6. Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates.
    blockchain online training

  7. Attend The Machine Learning course in bangalore From ExcelR. Practical Machine Learning course in bangalore Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Machine Learning course in bangalore.

  8. This is a wonderful article, Given so much info in it, These type of articles Digital marketing in pune keeps the users interest in the website, and keep on sharing more ... good luck.