Skip to main content
100%

Hovering

✓ Published1🌍 Public
Ccpsshan
Last edited Jul 15, 2019
Created on Jul 15, 2019

A row of apples animates in size and position using d3 transitions, with one fruit highlighted on hover. The fruitBowl module binds fruit objects to SVG circles, using scaleOrdinal for color and radius mapped to fruit type. Mouse events call setSelectedFruit to toggle a black stroke on the selected circle. Over time, setTimeout triggers data changes—removing a fruit, converting one to a lemon, and filtering another—while d3’s enter/merge/exit pattern animates the updates.

AI-generated description
MIT Licensed

Similar vizzes