Skip to main content
100%

Bowl of Fruit

✓ Published2🌍 Public
ZZY Huang
Last edited Apr 25, 2020
Created on Apr 25, 2020

Five circles represent apples in a bowl, rendered as red SVG circles that scale up on entry and shrink on exit. Over time, the code removes an apple, changes one apple into a yellow lemon by re-binding data and updating fill color, then filters out another apple. The example uses d3.v5 with scaleOrdinal for color and radius mapping, and transition().duration() to animate enter, update, and exit selections.

AI-generated description
MIT Licensed

Similar vizzes