Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of Fruit - Nested something

Public visualization

Bowl of Fruit - Nested something

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed