Automatic generation of flat network structure with the Voronoi algorithm.
xxxxxxxxxx
<html lang="en">
<head>
<script src="//d3js.org/d3.v3.min.js"></script>
</head>
<style>
.node {
stroke: #fff;
stroke-width: 2;
cursor: pointer;
}
.link {
stroke-width: 2;
}
</style>
<body>
<svg class="gravity">
<g class="links-container"></g>
<g class="nodes-container"></g>
</svg>
<script type="text/javascript" src="main.js"></script>
</body>
</html>
https://d3js.org/d3.v3.min.js