-
Book Overview & Buying
-
Table Of Contents
Learn D3.js - Second Edition
By :
Hierarchical data structures describe relationships and dependencies, which are essential in many scientific fields. In the next two chapters, you will learn how to create data visualizations that explore different ways to represent hierarchies, using the tools from the d3-hierarchy module.
The hierarchies discussed in this chapter are called trees: networks of nodes with a single root and only one possible path between any two nodes. If your data is nested or has fields that link to other nodes, it may be converted into a hierarchy object for D3’s hierarchical layout generators, which calculate values and set properties to facilitate the graphical representation of hierarchical data.
The d3-hierarchy module has two groups of tools: layout generators, used to compute coordinates that help render data visualizations, and a pair of functions that transform hierarchical data into a standard format used by these generators. In this chapter, we...