Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Nested elements

Public visualization

Nested elements

0 stars1🌍 Public
JJenny
Last edited Jul 12, 2019
Created on Jul 11, 2019

A row of apples and a lemon sit in a blue bowl, rendered as nested SVG groups containing circles and text labels. The fruit update over time as items are removed and one apple changes to a lemon, demonstrating data joins with `selection.enter`, `merge`, and `exit`. The code uses d3 v5's `scaleOrdinal` for color and radius, and `selection.select` to access nested elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed