Skip to main content
100%

Bowl of Fruit -Hover to Select

✓ Published2🌍 Public
SScott Rapponotti
Last edited Jul 2, 2020
Created on Jun 22, 2020
Forked from HTML Starter

This interactive SVG example uses React and D3 v5 to display a bowl of fruit as circles, with apples and lemons represented by red and yellow circles of different sizes. Hovering over any fruit highlights it with a black stroke, and selecting a fruit updates the visualization. The code uses D3's `scaleOrdinal` for color and radius scales, and animates circle radii with `transition().duration()` when fruits are added, removed, or change type. The data is a static array of fruit objects, with timed events removing or modifying fruits.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes