Our file will be a pretty standard index.html file, but we'll need two <g> elements, as follows:
- One to contain the nodes (people: circles)
- One to contain the links (relationship: lines)
Here's what our code should look like:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="https://d3js.org/d3.v5.min.js"></script>
</head>
<body>
<svg>
<g id="nodes"></g>
<g id="links"></g>
</svg>
<script src="app.js" charset="utf-8"></script>
</body>
</html>