Skip to main content
100%

Fork of Bowl of Fruit - Animated Transitions

✓ Published0🌍 Public
HHojjat Karami
Last edited Apr 14, 2023
Created on Apr 14, 2023

This example demonstrates animated transitions for a fruit bowl, where apples and lemons appear, disappear, and change type with smooth updates. Five circles initially render as apples; clicking highlights a fruit with a black stroke, while timed updates remove the last apple, convert the third apple to a lemon, and filter out the second fruit. The visualization uses D3 v5 with the `fruitBowl` module, leveraging `selection.data()` with key functions, `transition().duration()` for enter, update, and exit animations, and ordinal scales for color and radius. SVG shapes are bound to data, with mouseover and mouseout events triggering selection changes.

AI-generated description
MIT Licensed

Similar vizzes