Skip to main content
100%

Bowl of fruits - singular

✓ Published1🌍 Public
Aaxliao
Last edited Jul 14, 2019
Created on Jul 13, 2019

A bowl of fruits is drawn with D3.js, showing a static collection of apples before a lemon replaces one apple and another apple is removed. The visualization demonstrates fundamental DOM manipulation by updating an SVG scene: a rounded rectangle bowl and fruit groups are created, transformed, and deleted using D3's selection API. The code uses `scaleOrdinal` from D3 v5 to map fruit types to colors and radii, and `groups.enter()`, `merge()`, and `exit().remove()` to manage elements as data changes over timed intervals.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes