Neither the forest nor the trees
Feb 15, 2024
On the NYT's twitter feed, they featured an article titled "These Seven Tech Stocks are Driving the Market". The first sentence of the article reads: "The S&P 500 is at an all-time high, and investors have just a handful of stocks to thank for it."
Without having seen any data, I'd surmise from that line that (a) the S&P 500 index has gone up recently, and (b) most if not all of the gain in the index can be attributed to gains in the tech stocks mentioned in the headline. (For purists, a handful is five, not seven.)
The chart accompanying the tweet is a treemap:
The treemap is possibly the most overhyped chart type of the modern era. Its use here is tangential to the story of surging market value. That's because the treemap presents a snapshot of the composition of the index, but contains nothing about the trend (change over time) of the average index value or of its components.
***
Even in representing composition, the treemap is inferior to, gasp, a pie chart. Of course, we can only use a pie chart for small numbers of components. The following illustration takes the data from the NYT chart on the Magnificent Seven tech stocks, and compares a treemap versus a pie chart side by side:
The reason why the treemap is worse is that both the width and the height of the boxes are changing while only the radius (or angle) of the pie slices is varying. (Not saying use a pie chart, just saying the treemap is worse.)
There is a reason why the designer appended data labels to each of the seven boxes. The effect of not having those labels is readily felt when our eyes reach the next set of stocks – which carry company names but not their market values. What is the market value of Berkshire Hathaway?
Even more so, what proportion of the total is the market value of Berkshire Hathaway? Indeed, if the designer did not write down 29%, it would take a bit of work to figure out the aggregate value of yellow boxes relative to the entire box!
This design sucessfully draws our attention to the structural importance of various components of the whole. There are three layers - the yellow boxes (Magnificent Seven), the gray boxes with company names, and the other gray boxes. I also like how they positioned the text on the right column.
***
Going inside the NYT article itself, we find two line charts that convey the story as told.
Here's the first one:
They are comparing the most recent stock prices with those from October 12 2022, which is identified as the previous "low". (I'm actually confused by how the most recent "low" is defined, but that's a different subject.)
This chart carries a lot of good information, even though it does not plot "all the data", as in each of the 500 S&P components individually. Over the period under analysis, the average index value has gone up about 35% while the Magnificent Seven's value have skyrocketed by 65% in aggregate. The latter accounted for 30% of the total value at the most recent time point.
If we set the S&P 500 index value in 2024 as 100, then the M7 value in 2024 is 30. After unwinding the 65% growth, the M7 value in October 2022 was 18; the S&P 500 in October 2022 was 74. Thus, the weight of M7 was 24% (18/74) in October 2022, compared to 30% now. Consequently, the weight of the other 473 stocks declined from 76% to 70%.
This isn't even the full story because most of the action within the M7 is in Nvidia, the stock most tightly associated with the current AI hype, as shown in the other line chart.
Nvidia's value jumped by 430% in that time window. From the treemap, the total current value of M7 is $12.3 b while Nvidia's value is $1.4 b, thus Nvidia is 11.4% of M7 currently. Since M7 is 29% of the total S&P 500, Nvidia is 11.4%*29% = 3% of the S&P. Thus, in 2024, against 100 for the S&P, Nvidia's share is 3. After unwinding the 430% growth, Nvidia's share in October 2022 was 0.6, about 0.8% of 74. Its weight tripled during this period of time.
I agree that the treemap is inferior to the pie chart for small numbers of components, but I think the pie chart is inferior for larger numbers. This is not to the credit of treemaps, but because pie charts get so much worse, so fast :-)
Posted by: derek | Feb 15, 2024 at 10:18 AM
derek: true. So we can say: treemap is better in situations in which both chart forms are bad.
Posted by: Kaiser | Feb 15, 2024 at 12:27 PM
"The treemap's drawback lies in its simultaneous adjustment of both width and height, contrasting with the pie chart's singular variation in radius or angle. The addition of data labels to each box compensates for this, providing clarity. Without labels, assessing specific values, like Berkshire Hathaway's market share or its proportion to the total, becomes challenging. However, the design effectively emphasizes structural importance with three layers - the 'Magnificent Seven' in yellow, gray boxes with company names, and other gray boxes. The strategic placement of text in the right column enhances visual hierarchy and comprehension." Regards Cricketbet9
Posted by: Cricketbet9 | Mar 03, 2024 at 11:38 AM
The above is probably someone using LLMs to summarize my post while inserting a link to their page.
Posted by: Kaiser | Mar 03, 2024 at 01:04 PM
What's wrong with a boring old bar chart?
Posted by: Jon Peltier | Mar 09, 2024 at 06:06 PM