{
const d3 = await require("d3@3");
const svgEle = html`<svg width=${width} height=50>
<circle r=10 cx=20 cy=20></circle>
<circle r=10 cx=40 cy=20></circle>
</svg>`;
let data = [1,2,3,4,5,6,7];
const nodesUpdate = d3.select(svgEle)
.selectAll("circle")
.data(data);
const nodesEnter = nodesUpdate.enter()
.append("circle")
.style("fill", "steelblue")
.attr("cy", 20)
.attr("r", 1)
.attr("cx", d=> d*20);
nodesUpdate
.transition().duration(1000)
.attr("r", 5);
return svgEle;
}