Fork of Practic 06 | Bowl of Fruit
✓ Published1🌍 Public
This example demonstrates a dynamic fruit bowl visualization using D3.js where five apples are initially rendered as circles, one is removed, and another transforms into a lemon over time. The code uses D3's `select`, `scaleOrdinal` for color and radius scales, and `range` to generate the fruit array. It manipulates the SVG document directly by appending, updating, and removing circle elements through the `render` function to reflect changes in the data array. The visual comparison between the red apples and yellow lemon is created using a categorical color scale.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed