什么时候使用 Treemap
You have a hierarchy to show
Sector inside market, product inside category, folder inside drive. Nesting is what a treemap does that no bar chart can, and it is the main reason to reach for one.
There are too many categories for bars
Fifty budget lines make an unreadable bar chart and a perfectly legible treemap, because the small ones shrink out of the way instead of stretching the axis.
The sizes are genuinely uneven
Treemaps are at their best when a few large tiles dominate and the tail is small. Even values produce a grid of near-identical rectangles that says very little.
Space is fixed and precious
A dashboard tile or a slide. The chart fills exactly the room it is given, whatever the number of categories.