-
Book Overview & Buying
-
Table Of Contents
Learn D3.js - Second Edition
By :
In the last chapter you learned how to create hierarchical networks, or trees. In this chapter we will explore other types of networks, which may contain disconnected nodes and sub-networks, allowing directional flows as well as cycles.
Network visualizations can be used for any kind of connected system, which may be abstractions of physical real-world systems such as roads, flight routes, subway systems, or abstract relational structures like social networks, migration flows, and hierarchies. Visualizations can reveal different aspects of these networks, such as the importance of some connections in relation to others, the number of connections that enter and leave a node, and topological aspects.
A simple graph connecting lines to points can be drawn with the basic D3 toolset we already learned how to use, but it’s always much easier if a generator function calculates the coordinates for us. D3 provides several tools to create popular...