Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of Fruit - CLick to select

Public visualization

Viewing a saved revision (read-only)

fa748c786df04024be9fef786f2b10bd

Bowl of Fruit - CLick to select

0 stars0🌍 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