Skip to main content
100%

Bowl of Fruit

✓ Published2🌍 Public
Rrebeccayc
Last edited Feb 7, 2020
Created on Feb 7, 2020

A bowl of fruit shows five apples rendered as red circles, which are eaten and replaced by a lemon over time through animated transitions. The visualization uses D3 v5’s general update pattern with `selectAll`, `data`, `enter`, `merge`, and `exit` to manage SVG circle elements, applying ordinal scales for color and radius based on fruit type. The animation sequence, driven by `setTimeout`, demonstrates adding, removing, and updating data while smoothly interpolating circle radius and position via `transition`.

AI-generated description
MIT Licensed

Similar vizzes