mySvg = {
let svg = d3.create("svg").attr("height", 500).attr("width", 1000);
for (let i = 0; i < 900; i++) {
let color = d3.hsl(Math.random() * 50 + hue, 0.5, 0.5);
svg
.append("circle")
.attr("cx", Math.random() * 1000)
.attr("cy", Math.random() * 1000)
.attr("r", Math.random() * radius)
.attr("fill", "pink")
.attr("opacity", Math.random());
}
svg
.append("rect")
.attr("width", 1000)
.attr("height", 500)
.attr("fill","white")
.attr("fill-opacity","0")
.attr("stroke","white")
.attr("stroke-width",10);
return svg.node();
}