© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
E. ElromIntegrating D3.js with Reacthttps://doi.org/10.1007/978-1-4842-7052-3_9

9. Force Charts: Part 2

Elad Elrom1  
(1)
New York, NY, USA
 

In this chapter, I will show you how to create a Network graph (force directed graph). We will create a network visualization chart with mechanical spring behavior to represent interview questions you may want to review before your next React job interview. Let’s get started.

Force Directed Graph

A force-directed graph is often used for showing relationships between nodes.

What We Will Be Building?

Figure 9-1 shows the final results; see also https://elielrom.com/ReactQuestions.
Figure 9-1

Simple force graph final results

Housekeeping ...

Get Integrating D3.js with React: Learn to Bring Data Visualization to Life now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.