Skip to main content
100%

Learn Selection

✓ Published2🌍 Public
AAjit Singh
Last edited Jan 5, 2021
Created on Jan 1, 2021

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 description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes