Bowl of fruit - General update pattern
Five fruits are rendered as colored circles in an SVG. The general update pattern demonstrates data joins, transitions, and exit animations as fruits are removed or change type, with apples (red, radius 50) and lemons (yellow, radius 30) scaling and repositioning over 1000ms. Using React and d3.v5, the code applies `scaleOrdinal` for colors and radii, binds data by `id` with `selection.data`, and uses `transition().duration()` to animate entering, updating, and exiting circles. The example runs on a timer, alternately popping, replacing, and filtering the fruit array.