{
const svg = d3.create("svg")
.attr("width", "500px")
.attr("height", "100px")
const somedata = [
{radius: 10, color: "red"},
{radius: 10, color: "#00beef"},
{radius: 20, color: "peru"}
];
svg.selectAll("circle")
.data(somedata)
.join("circle")
.attr("cx", (d,i) => (i + 1) * 50)
.attr("cy", 50)
.attr("r", d => d.radius)
.attr("fill", d => d.color)
return svg.node();
}