{
const svg = d3.create("svg").attr("width", width).attr("height", height);
for (let i = 0; i < nCircles; i++) {
const x = Math.random();
const y = Math.random();
const r = Math.random();
svg
.append("circle")
.attr("cx", xScale(x))
.attr("cy", yScale(y))
.attr("r", rScale(r))
.attr("fill", getRandomColor())
.attr("stroke", "hsl(216deg 100% 13%)")
.attr("stroke-width", 2);
}
return svg.node();
}