Skip to main content
100%

Fork of Bowl of Fruit (Hover to Select)

✓ Published0🌍 Public
BBKirst3
Last edited Mar 6, 2021
Created on Mar 6, 2021

This example demonstrates a dynamic fruit bowl visualization where apples and lemons appear, transform, and disappear over time. A black stroke highlights the currently hovered fruit, with the selection state cleared on mouseout. The code uses d3 v6 APIs including `scaleOrdinal` for color and radius mapping, `selection.enter`/`exit` with `transition.attr` for smooth size changes, and `selection.on` for mouse events. The SVG circles are bound to data objects with unique IDs via `data(fruits, d => d.id)`.

AI-generated description
MIT Licensed

Similar vizzes