{
const svg = DOM.svg(width, height);
const svgSelection = d3.select(svg).append('g');
let data = generateNodes();
var simulation = d3.forceSimulation()
.force("collide", d3.forceCollide(17))
.force("center", d3.forceCenter(width / 2, height / 2))
.nodes(data)
.on("tick", tick);
svgSelection.selectAll(".nodes")
.data(data, function(d,i) {
return i;
}).enter()
.append("circle")
.attr("class", "node")
.attr("r", (d,i)=> i*0.2)
.attr("fill", (d,i) => colors(i));
return svg;
}