Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of Fruit

Public visualization

Viewing a saved revision (read-only)

9ba270cac9f749ffb31678e9cd48fbb4

Bowl of Fruit

0 stars1🌍 Public
AAndrewRiceMGW
Last edited Jan 24, 2021
Created on Jan 24, 2021

A bowl of fruit demonstrates animated enter, update, and exit transitions for SVG circles representing apples and lemons. Five apples initially render, then one is removed, another changes to a lemon, and a third disappears, with each change animating radius and position over one second. The example uses d3.select and d3.range to generate data, and a custom fruitBowl function with d3.scaleOrdinal for color and radius, plus selection.merge and selection.exit with transition.duration.

AI-generated description