Skip to main content
100%

Bowl of Fruit - Click to Select

✓ Published0🌍 Public
Xxychen0612.cs09@nycu.edu.tw
Last edited Sep 20, 2023
Created on Sep 20, 2023

Five apples are rendered as red circles in an SVG bowl, and a timed sequence demonstrates D3 data joins by eating, replacing, and filtering fruits. Each apple is a circle with a label, positioned via a transform attribute using index-based spacing. The code uses `d3.scaleOrdinal` for color and radius mapping, while `selection.enter` and `selection.exit` manage element updates. The fruit data is an array of objects, and the visualization updates through repeated calls to a `fruitBowl` render function.

AI-generated description
MIT Licensed

Similar vizzes