Besides the treemap visualization, D3 also provides a couple of other ways of visualizing hierarchical data in approximately the same way. With a partition layout, the rectangles aren't nested but are shown together; and the pack layout uses circles instead of rectangles.
We won't go into too much detail in the following two sections, since the steps shown for the treemap layout are the same as for the pack and partition layouts.