Fork of Fade Out Fade In 4 - test
Four red circles fade in one by one as two blue circles fade out and are removed from an SVG canvas. The code uses d3 v7 transitions with a `transition.remove()` call and an `on("end")` handler to trigger the second dataset’s entry selection. A conditional checks the index to ensure the callback runs only after the last blue circle’s transition completes. The example demonstrates sequencing data joins and element removal with `selectAll`, `data`, and `enter` methods.
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)