Bowl of fruits - hover to select
✓ Published0🌍 Public
A bowl of fruits shows five apples rendered as SVG circles, with hovering over a fruit highlighting it with a black stroke. The visualization uses d3.scaleOrdinal to map fruit types to colors and radii, and transitioned circle radii to animate fruits entering and exiting. Data updates remove an apple, replace one with a lemon, and filter out another, all driven by React state through setSelectedFruit. The code leverages d3-selection, d3-transition, and d3-scale within a React framework.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed