Bowl of fruit
✓ Published1🌍 Public
A bowl of fruit is a D3.js example demonstrating fundamental DOM manipulation, showing a sequence of animated changes to a set of circles representing fruits. The visualization uses d3.select and d3.range to manage the SVG elements, with d3.scaleOrdinal mapping fruit types to colors and radii. A series of setTimeout calls triggers transitions: a circle is removed, one changes from an apple to a lemon, and another is filtered out, all animated over one-second durations using the selection.merge() and selection.exit() methods.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed