{
let svg = d3.create("svg")
.attr("width", myWidth)
.attr("height", myHeight);
d3.create("svg").attr("height", 500).attr("width", 500);
svg
.append("rect")
.attr("width", 500)
.attr("height", 500)
.attr("fill", "#ffd6cc")
for(let i=0; i< circles; i++){
let x = Math.random() * 500;
let y = Math.random() * 500;
let r = Math.random() * 3 + 1;
svg.append("circle")
.attr("cx", x)
.attr("cy", y)
.attr("r", myradius)
.attr("fill", "#ff704d");
svg.append("circle")
.attr("cx", x * 2)
.attr("cy", y * 3)
.attr("r", myradius)
.attr("fill", "#e62e00");
svg.append("circle")
.attr("cx", x * 3)
.attr("cy", y * 2)
.attr("r", myradius)
.attr("fill", "#b32400");
}
return svg.node();
}