In this chapter, you learned how to create visualizations of relational data using D3, starting from the two basic data structures used by most layout generator functions in D3: adjacency matrixes and adjacency lists. You also learned how to convert between the two structures and how to create a simple generator function to plot adjacency matrix visualizations. A comparative chart was provided to describe different types of network visualizations and to help you choose the best one for your data.
We also provided step-by-step examples, showing you how to create simple node-link visualizations using functions from three D3 libraries: the d3-chord module, used to create circular chord/ribbon diagrams for multidirectional flows and associations; the d3-sankey module, to create Sankey diagrams for unidirectional flows; and the d3-force module, to create interactive network...