In computing and information visualization, treemaps are a way of displaying hierarchical data with nested rectangles. Each branch of the tree is given a rectangle, which is then tiled with smaller rectangles representing sub-branches.

Data in a treemap is displayed in "branches" (also called "nodes"). Each branch can have zero or more sub-branches, and one parent branch (except for the root, which has no parents). Each branch is displayed as a rectangle, sized and colored according to the values in your data. Sizes and colors are valued relative to all other branches in the graph.


Imagine that our data is such in this table;

This might look boring. Also and most importantly, it is not easy to grasp the general idea of values. With a treemap, we can show it like this;
So we can see how much pretty bird seed we have on the shelf compared to parrot perch and so others.

How to add a treemap chart

Chart Settings

Click on the chart, afterwards on the right, use the properties panel to change the chart options.

Data Tab

This tab shows settings related to the data source.

  • Data source: A data source lets you to connect to the data set you want to use. Data source options are: change the data source, view/edit the data source, add a blended data source.
  • Dimension: Dimensions are categories for your data, and dimension values are a name, description or other characteristic of a category. You can choose dimensions either directly from the available fields or by clicking the "Add Dimension" link. Dimensions may differ according to cart types. For example geo charts's dimensions will be only locations.
  • Drill down: This option appears if the chart support it. Drilling down gives viewers a way to reveal additional levels of detail. When you turn on Drill down, ****each dimension you add becomes another level of detail you can see. Here is an example how drill down works;
  • Levels to show: This option changes the granularity of the chart. For example, the sample chart below 1 Levels to show, therefore it shows only one level of detail (Department, avian, canine etc.)
  • Metric: Metrics are used to measure the contents of dimensions and provide the chart with a numeric scale and data series. Drag fields from the Available Fields tab on the right onto the chart to add measurements. You can also click Add metric in the Data tab.
    • Optional metrics allows you to select more than 1 metric and viewer will able to change them.
    • Metric Slider given the viewer an option to filter desired metric value to view. For example, you can limit the chart to only show Average Orders where the total value is between $100 and $200. (not all charts offer this option)
💡At least 1 metric is required. You can have up to 20 metrics in a single-dimensional graphic. One metric can be used for charts with two dimensions.
  • Total Rows: Treemaps can display from 5 to 5000 rows of data. Here you can select how much your data will be displayed.
  • Default date range: This lets you set the timeframe for an individual chart*.* When this is changed, this specific chart's date range overrides the date range of the page. Default date range options:
    • Auto: Applies the date frame of the dashboard if there is a data selector. If not, then tries to include all data.
    • Custom: Lets you use the calendar widget to select a custom date range for the chart.
    • Date compare type: Displays comparison data for the selected time period.
  • Filter : Filter help filtering the raw data which is coming from the data source. It might be helpful when you want to includes specific values or exclude some. For example you might want to exclude ad campaigns with zero impressions.
  • Google Analytics segment: This option appears for charts based on a Universal Analytics data source. A segment is a subset of your Analytics data. You can apply segments to your Data Studio charts to help ensure that your Data Studio and Google Analytics reports show the same data.
  • Interactions : When interactions are enabled on a chart, that charts acts like a filter controls. Here is an example, on this dashboard, campaign table has the interactions option activated. So viewer can click on any row and top metrics represent metrics of this selected row.

Style tab

A chart's style properties control the overall presentation and appearance of the chart.


  • Max color value → Set the color for the highest metric value.
  • Mid color value → Set the color for the median metric value.
  • Min color value → Set the color for the minimum metric value.
  • Show branch header → Show or hide the parent branches.
  • Show scale → Show or hide the chart scale, which appears above the treemap. To see the scale in action, hover over different branches in the chart.

Text: Set the font color, font size, and font family for text in the chart.

  • Background and border: These options control the appearance of the chart background container.
    • Background: Sets the chart background color.
    • Border Radius: Adds rounded borders to the chart background. When the radius is 0, the background shape has 90° corners. Border radius of 100° produces a circular shape.
    • Opacity: Sets the chart's opacity. 100% opacity completely hides objects behind the chart. 0% opacity makes the chart invisible.
    • Border Color: Sets the chart border color.
    • Border Weight: Sets the chart border line thickness.
    • Border Style: Sets the chart border line style.
    • Add border shadow: Adds a shadow to the chart lower and right borders.
  • Chart Header: The chart header lets viewers perform various actions on the chart, such as exporting the data, drilling up or down, and viewing the chart in the Explorer tool. You can choose show on hover - which is default, always show and do not show.

Blog post

Give your customers a summary of your blog post