Skip to main content
100%

Bowl of fruit - General update pattern

✓ Published0🌍 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
MIT Licensed

Similar vizzes