-
Book Overview & Buying
-
Table Of Contents
Learn D3.js - Second Edition
By :
Deciding where to place the nodes in a network visualization can be challenging. D3 offers a solution to this problem with the d3-force module, which contains algorithms that can be combined to find the best places for each node. It not only decides the best place for a node but also animates the process with a force integration engine that combines multiple algorithms like collision detection, mutual attraction and repulsion, linked connections, and positioning forces to smoothly drive the nodes to their final destinations.
Even with automatic node placement, network diagrams may become crowded, making it hard to visualize specific paths. You can improve the user’s experience by adding interactive features such as node highlighting, zooming, dragging, as well as adding and removing nodes and links.
In this chapter you will learn how to configure a force-directed simulation using all the force algorithms provided by the d3-force module and apply...