Efficient data visualizations benefit from different views of the same data, and fields sometimes can be organized in such a way as to reveal relationships with other data, forming hierarchical structures. In this chapter, you will learn how to prepare a dataset so that it can be used to represent a hierarchy, using nesting techniques and tools provided by the d3-hierarchy module.
There are many ways to represent hierarchies. In this module you will learn how to use generator functions that prepare hierarchical data so that it can be rendered as a tree or dendograms, but you can use the same data to generate other popular hierarchical visualizations, such as treemaps, circle packs, and partitions. You will learn how to create each one of them in this chapter through simple examples that are based on the same hierarchical dataset.
In this chapter...