Skip to main content
100%

Bowl of Fruit - CLick to select

✓ Published0🌍 Public
AAaron Goebel
Last edited Apr 13, 2020
Created on Apr 13, 2020

This interactive D3.js example displays a bowl of fruit as colored circles, where apples render in red and lemons in yellow, with size encoding fruit type. Users can click or hover over a fruit to select it, which adds a black outline around the chosen circle. The visualization uses D3's ordinal scales for color and radius mapping, and animates circle transitions with the `.transition()` API. Data changes over time, automatically removing fruits and swapping an apple for a lemon, demonstrating dynamic updates with enter, merge, and exit states in SVG.

AI-generated description
MIT Licensed

Similar vizzes