Bowl of Fruit - Animated Transitions
This example demonstrates animated transitions of fruit items within a bowl using D3.js. The visualization shows apples, lemons, and green apples appearing, disappearing, and changing types over time, with each fruit represented as a circle and label. The code employs D3 v5's `scaleOrdinal` for color and radius mapping, `transition().duration(1000)` for smooth animations, and SVG `g`, `circle`, and `text` elements. The rendering uses SVG with animations triggered by setTimeout calls that modify a fruit array and re-render the scene.