Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Make fruit bowl update patterns with nesting

Public visualization

Viewing a saved revision (read-only)

db702c7f7f5947d6833753bd90eee112

Make fruit bowl update patterns with nesting

0 stars0🌍 Public
Iisaachowen
Last edited Aug 6, 2019
Created on Aug 4, 2019

Apples and lemons rest in a bowl, and a sequence of timed mutations—removing fruit, changing an apple to a lemon, and filtering—drives the visualization. Nested `g` elements contain each fruit, with circles and labels animated via a `transition().duration(1000)` call that interpolates the radius. The example uses D3 v5’s `scaleOrdinal` for color and radius mapping, with SVG rendering for the bowl shape. All state changes are triggered by `setTimeout` in `index.js`.

AI-generated description