fruit bowl - general update pattern
✓ Published0🌍 Public
Five red circles represent apples in a row, using D3 v5’s general update pattern with `selection.data`, `enter`, `exit`, and `remove`. The initial `range(5)` dataset renders all circles, then after one second a `setTimeout` removes the last apple, triggering an exit transition that deletes the corresponding circle from the SVG.
AI-generated descriptionMIT Licensed