Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of haha

Public visualization

Viewing a saved revision (read-only)

6195b41c169e45f7a6414f71e8bd2ba3

Fork of haha

0 stars0🌍 Public
Llinyyyyyyyyy
Last edited Dec 3, 2022
Created on Dec 3, 2022
Forked from haha

Five apples appear in a bowl, then the example animates a series of changes: one apple is removed, a second apple turns into a lemon, another apple disappears, and a third becomes a lemon. Each fruit is an SVG circle, with color and size determined by a `scaleOrdinal` color scale and radius scale. The D3 code uses `select` for DOM selection, `.transition()` with a one-second duration to animate attribute changes, and mouseover/mouseout events that call `onClick` to highlight the selected fruit with a yellow stroke.

AI-generated description