chart = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height])
.attr("stroke-width", 0);
const circles = d3.range(2).map(i => ({
x: Math.random() * (width - radius * 2) + radius,
y: Math.random() * (height - radius * 2) + radius,
r: [size1,size2]
}));
svg.selectAll("circle")
.data(circles)
.attr("id","circle1")
.join("circle")
.attr("cx", d => d.x)
.attr("cy", d => d.y)
.attr("r", (d,i) => d.r[i])
.attr('fill-opacity', 0.2)
.attr("fill", (d, i) => d3.schemeCategory10[i % 10])
.call(drag);
return svg.node();
}