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 stars0🌍 Public
IIsmaelHernandezL
Last edited Jan 3, 2020
Created on Jan 3, 2020

Five pieces of fruit sit in a bowl rendered as SVG shapes. The general update pattern demonstrates how D3’s enter, update, and exit selections handle data changes. Using `d3.scaleOrdinal` for color and radius, circles and text labels update through `selection.merge`, while `setTimeout` modifies the array to remove items or change an apple to a lemon. The bowl itself is a static rectangle.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed