{
const ancho = 500;
const alto = 500;
const data = [10, 30, 70]
const svg = d3.create("svg").attr("width", ancho).attr("height", alto)
const circulos = svg.selectAll("circle")
.data(data)
.join("circle")
update()
function update() {
circulos
.attr("r", d => d)
.attr("cx", (d,i) => 100 + (100 * i))
.attr("cy", alto/2)
.attr("fill", "red")
}
const boton = svg.append("g")
boton.append("rect").attr("")
return svg.node()
}