This is a similar example to some of my others, but this is the code I used in class on 27/03/2017 to introduce CMT212 to forces simulations in D3
forked from martinjc's block: D3 - Force simulation, curved weighted links (Data: Welsh Assembly Twitter Connections)
xxxxxxxxxx
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Forces network</title>
<style>
.node {
stroke: #000;
stroke-width: 1px;
}
.link {
fill: none;
}
</style>
</head>
<body>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="script.js"></script>
</body>
</html>
Modified http://d3js.org/d3.v4.min.js to a secure url
https://d3js.org/d3.v4.min.js