{
const svg = d3.create("svg")
.attr("width", width)
.attr("height", 33)
.attr("viewBox", `0 -20 ${width} 33`);
while (true) {
svg.selectAll("text")
.data(randomLetters(), d => d)
.join(
enter => enter.append("text")
.attr("fill", "green")
.text(d => d),
update => update
.attr("fill", "gray")
)
.attr("x", (d, i) => i * 16);
yield svg.node();
await Promises.tick(1500);
}
}