shrinking bowl of fruit
✓ Published0🌍 Public
A bowl of four apples shrinks in size as each fruit transitions to a smaller radius, with the bowl’s width adjusting to fit. Clicking an apple turns it red. The visualization uses d3 selections with data joins, ordinal scales for color and radius, and transitions on SVG circles and rectangles. The `fruitBowl` function manages enter, update, and exit states, while `d3.range` generates the initial fruit array.
AI-generated descriptionMIT Licensed