Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of Fruit

Public visualization

Viewing a saved revision (read-only)

bd7ae54aa6f54e13afd24b47740a4102

Bowl of Fruit

0 stars2🌍 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