-
Book Overview & Buying
-
Table Of Contents
Learn D3.js - Second Edition
By :
The previous two chapters examined methods for structuring and visualizing hierarchical data with D3. Chapter 15 concentrated on transforming datasets into hierarchy objects that could be processed by layout generators to draw trees as shapes connected by lines. Building on this, the current chapter continued with these datasets to investigate alternative tree topologies, specifically partitions and enclosures, which respectively stack or contain nodes.
All the functions used in both chapters are from the d3-hierarchy module. In this chapter, you learned how to create partitions using three layout generators: d3.partition() for icicle, flame, and sunburst charts; d3.treemap() for treemap enclosures; and d3.pack() for packed circle enclosure diagrams. Interactive elements for enhancing these charts were also introduced.
Trees—the hierarchical structures covered in this chapter—are a particular kind of network where each node has only one parent and the hierarchy...