Learn Selection
✓ Published2🌍 Public
A fruit bowl of five circles transitions through a sequence of changes: one circle shrinks and disappears, a circle changes from red (apple) to yellow (lemon), and another is removed. The example demonstrates D3's selection API with `selectAll`, `.enter()`, `.merge()`, and `.exit()`, using `.transition().duration()` to animate position, fill, and radius. It uses `scaleOrdinal` for color and radius mapping, and `range` to generate initial data.
AI-generated descriptionAn example including some commonly used features of SVG.
MIT Licensed