Skip to main content
100%

Fork of haha

✓ Published0🌍 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
MIT Licensed

Similar vizzes