demers = {
for (let i = 0; i < 300; i++){
squareSimulation.tick();
}
const svg = d3.create('svg').attr("width", width).attr("height", height)
.attr("stroke-linejoin", "round")
.attr("stroke-linecap", "round");
const node = svg.selectAll('square')
.data(states)
.join('rect')
.attr('width', d => sizeSquare(d) )
.attr('height', d => sizeSquare(d) )
.attr('x', d => d.x )
.attr('y', d => d.y )
.attr('stroke', '#FFF')
.attr('transform', d => `translate(${-(sizeSquare(d) / 2)},${-(sizeSquare(d) / 2)})`)
svg.selectAll('label')
.data(states)
.join('text')
.attr('fill', '#FFF')
.attr('x', d => d.x )
.attr('y', d => d.y )
.attr('text-anchor', 'middle')
.text(d => formatText(d) )
return svg.node()
}