Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of Fruit - hover to select

Public visualization

Bowl of Fruit - hover to select

0 stars0🌍 Public
Aaidanoconnor1
Last edited Nov 30, 2019
Created on Nov 30, 2019

Five pieces of fruit sit in a row, each drawn as an SVG circle; hovering over one selects it with a black outline. The bowl updates over time, as apples are removed and one apple changes into a lemon via d3 transitions. The code uses d3.scaleOrdinal for color and radius, data joins with enter/merge/exit, and mouseover/mouseout events to trigger selection.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed