Bowl of Pudding - General Update Pattern Special Cases
✓ Published0🌍 Public
MMukund Khandelwal
Last edited Oct 4, 2018
Created on Sep 18, 2018
This example demonstrates the general update pattern for data joins, showing how fruits (apples and lemons) transition in and out of a bowl-shaped container. It uses D3 v5 with SVG rendering and animations, applying ordinal scales for color and radius to distinguish fruit types. The code explicitly handles enter, update, and exit selections—though enter and merge are used, while exit removes departing groups. The bowl itself is a static rectangle with rounded corners, and fruit positions are calculated from index values, with transitions animating radius changes over one second.
AI-generated descriptionMIT Licensed