Nested Elements
✓ Published1🌍 Public
This example demonstrates nested SVG elements by rendering a bowl of fruit as circles within groups. It shows how to manage enter, update, and exit selections with D3 v5, using `scaleOrdinal` for color and radius mapping. The visualization updates over time via `setTimeout`, removing fruits, changing an apple to a lemon, and filtering the data array. Rectangles anchor the bowl, while groups position each circle and its corresponding text label.
AI-generated descriptionAn example including some commonly used features of SVG.
MIT Licensed