Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Hover to Select

Public visualization

Viewing a saved revision (read-only)

16169c184c8e4d8f9ec4774fe0662e3b

Hover to Select

0 stars0🌍 Public
WWayne716
Last edited Nov 20, 2020
Created on Nov 20, 2020
Forked from Click to Select

Five fruit circles render in an SVG, initially as apples that animate in with a staggered radius transition. Hovering over a circle selects it, adding a black stroke, while mouseout clears the selection. The code uses D3 v6 with a data join, `scaleOrdinal` for color and size, and `transition.attr` to animate enter, update, and exit states. A `setSelectedFruit` callback updates the selection, triggering re-renders that also remove or replace fruit over time.

AI-generated description