Bowl of fruit - Click to select
✓ Published0🌍 Public
This example shows a bowl of fruit where viewers can hover over apples and a lemon to select them, highlighting the chosen fruit with a black stroke while the others remain unhighlighted. The visualization animates changes in the fruit bowl over time, with fruits being removed and an apple transforming into a lemon. Built with D3 v5, it uses an SVG rendering approach with scales like `scaleOrdinal` for color, radius, text, and font size, alongside `transition().duration()` to smoothly animate position, radius, and text size changes for enter, update, and exit selections.
AI-generated descriptionMIT Licensed