🌍 Public
Viewing a saved revision (read-only)
741daa7a8b814eb8b533f949fc6c6149
Bowl of Fruit - Click to select
This example presents a bowl of fruit where apples and lemons animate their size and color as the dataset updates. A user can click any fruit to select it, which adds a black stroke. The D3 v5 code uses `scaleOrdinal` for color and radius mappings, and applies transitions to smoothly animate entering, exiting, and resizing circles. Array mutations (removing or altering fruit) trigger re-renders, demonstrating dynamic data binding with click-driven selection.
AI-generated description