Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Bowl of Fruit - Animated Transitions

Public visualization

Fork of Bowl of Fruit - Animated Transitions

0 stars0🌍 Public
SSuzie1022susu
Last edited Jan 11, 2023
Created on Jan 10, 2023

Five apples appear in a row and enlarge from zero radius; clicking one selects it with a black stroke, while a lemon is added to the bowl using an animated transition. The code uses d3-selection’s data join with a key function, and d3-transition’s `.transition().duration()` to animate circle positions and radii. SVG rendering displays the fruit, with d3-scaleOrdinal mapping fruit types to colors and sizes.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed