Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of Fruit - General Update Pattern

Public visualization

Bowl of Fruit - General Update Pattern

0 stars1🌍 Public
Kkwanwoo100
Last edited Jun 30, 2020
Created on Jun 30, 2020

Five apples in a row shrink, change type, and disappear over time, demonstrating D3’s general update pattern with enter, merge, and exit selections. The code uses `scaleOrdinal` from d3 for color and radius, binding fruit objects with unique `id` keys. Rendered as SVG circles, updates are triggered by `setTimeout`, which mutates the data array and re-renders the chart.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed