Skip to main content
100%

Fork of Bowl of Fruit - Hover to Select

✓ Published0🌍 Public
MMatthew Rubino
Last edited Jun 11, 2021
Created on Jun 11, 2021

This example demonstrates an interactive fruit bowl visualization where users hover over apples and lemons to select them, highlighting the chosen fruit with a thicker stroke. The fruit transitions in and out of the bowl with animated scaling. Built with React and D3 v6, it uses `scaleOrdinal` for color and radius mapping, and SVG `transition().duration()` for smooth updates. The code manages dynamic data changes—removing fruits and swapping types—via D3’s data join pattern.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes