Fade Out Fade In 4
Four red circles enter in a vertical column while two blue circles fade out and are removed, demonstrating chained selections with overlapping transitions. The example uses D3 v7 with SVG rendering, applying `transition().duration(2000).style("fill-opacity", "0").remove()` to delete the first dataset, then `.on("end", ...)` to append the second dataset. Because the removal and new selection overlap, only three of the four red circles appear, highlighting a timing issue in the transition lifecycle.
AI-generated descriptionFade Out Fade In 4
Trying to figure out how to remove elements and then make a new selection, this time using .on("end", ...). There should be four red circles, not three. Not sure why one circle is missing. It seems that there is an overlap between the removal of the first set of circles and the selection of the second set.
(Connected with d3 Slack question)