Building a force-directed graph
Finally, we will show how to implement a force-directed graph, the classic application of D3 force. However, we believe with all the techniques and knowledge you have gained so far from this chapter, implementing force-directed graph should feel quite straightforward.
Open your local copy of the following file in your web browser:
How to do it...
In this recipe, we will visualize the flare dataset as a force-directed tree (tree is a special type of graph):