Skip to main content
100%

Bowl of Fruit - Hover to select

✓ Published0🌍 Public
OOleg
Last edited Nov 2, 2020
Created on Nov 2, 2020

Five circles represent fruit in a bowl, with apples and lemons colored by a d3.scaleOrdinal. Hovering over a circle selects it with a black stroke, and the selection is managed through a state variable. The fruitBowl function uses data joins and transitions to animate the addition, removal, and type changes of fruit over time. The code employs d3-selection, d3-transition, and d3-scaleOrdinal with SVG rendering.

AI-generated description
MIT Licensed

Similar vizzes