Skip to main content
100%

Bowl of Fruit - Nested something

✓ Published0🌍 Public
Bbertieip
Last edited Jun 17, 2020
Created on Jun 16, 2020

A bowl of fruit illustrates the nested data structures within a D3 visualization. The example uses a D3 v5 `scaleOrdinal` to map fruit types to colors and radii, rendering apples and lemons as circles with labels. The code demonstrates incremental updates to a d3 selection: adding, modifying, and removing fruit items using `selectAll` and `merge`, with the bowl shape created via an SVG `rect` with a rounded corner.

AI-generated description
MIT Licensed

Similar vizzes