Skip to main content
100%

Bowl of Fruit - Click to Select

✓ Published1🌍 Public
Aarths-glitch
Last edited May 23, 2020
Created on May 23, 2020

Five apples appear in a row and animate into a fruit bowl using D3 v5 selections. Mousing over each fruit toggles its selected state, which adds a black stroke around the circle. The example uses `d3.scaleOrdinal` for color, radius, and stroke mapping, and `selection.enter`, `merge`, `exit` with transitions. A `setTimeout` sequence then removes one fruit, changes another to a lemon, and filters out a third, demonstrating dynamic data updates with animated circle radii and positions.

AI-generated description
MIT Licensed

Similar vizzes