chart3 = {
const height = 200;
const svg = d3.create("svg").attr("viewBox", [-width / 2, -height / 2, width, height]);
const nodes = [];
const nodeSelection = svg
.selectAll("circle")
.data(nodes)
.join("circle")
.attr("cx", (d, i) => (i % 10) * 20)
.attr("cy", (d, i) => Math.floor(i / 10) *20)
.attr("r", 10)
.attr("fill", "teal");
for (let i = 0; i < 100; ++i) {
nodes.push({ id: i });
yield Promises.tick(4000, {svg,nodes});
}
yield {svg,nodes};
}