Excel Treemap Charts

The Excel Treemap chart displays a hierarchical view of the data. The Treemap chart below displays the annualized performance of the 30 stocks in the Dow Jones Industrial Average. The size of the squares indicates the relative performance with Walmart Inc. (S.WMT) up the most and Merck & Co Inc (S.MRK) up the least.

f1

The data is from column D in the spreadsheet. Notice in the image below that there are negative values, such as Boeing Inc. (S.BA).

f2

Excel Treemap charts cannot work with negative values because Excel is calculating an area for the Treemap chart, and an area cannot be negative. The only solution is to create a second Treemap chart for those stocks that are negative for the year and manipulate the description to display the symbol and negative value.

f3

Above the columns are:

  • Column A is the symbol
  • Column B is merging the symbol with the text version of column G
  • Column D is the annualized percent change
  • Column E is the rank
  • Column F the absolute value of the negative returns from column D
  • Column G is the negative values

A new Treemap chart is created using column F for values. The labels for the boxes are from column B (symbol and percent net change merged). When adding the Labels select just "Category Name" and not "Value" for the labels.

f4

Below is the Treemap chart for the stocks with negative performance for the year.

f5

The sample spreadsheet is the same as the one used for the images in this post.

Requirements: CQG Integrated Client or QTrader, and Excel 2016 (locally installed, not in the Cloud) or more recent.

Downloads

Disclaimer

Trading and investment carry a high level of risk, and CQG, Inc. does not make any recommendations for buying or selling any financial instruments. We offer educational information on ways to use our sophisticated CQG trading tools, but it is up to our customers and other readers to make their own trading and investment decisions or to consult with a registered investment advisor. The opinions expressed here are solely those of the author and do not reflect the opinions of CQG, Inc. or its affiliates.