Bowl of fruits- Hover to Select
✓ Published0🌍 Public
Five circles represent fruits in a bowl using an ordinal color scale for apples and lemons, with hover interactions selecting a fruit by adding a black stroke. The visualization demonstrates data joins in D3 v5, where entering circles animate from radius zero, updated fruits transition to new positions and types, and exiting circles shrink away. Population data from a CSV file is not displayed in this code, which instead focuses on the `selection.data`, `transition`, and mouse event patterns in a reusable `fruitBowl` function.
AI-generated descriptionMIT Licensed