Skip to main content
100%

Bowl of fruit - Event Handlers

✓ Published0🌍 Public
Ssploitfun
Last edited May 7, 2020
Created on May 7, 2020

A bowl-shaped outline holds a row of five apples rendered as red circles, which users can hover over to highlight with a black stroke. The example demonstrates D3 v5 data joins with enter, update, and exit selections, using `scaleOrdinal` for color and radius mapping. Over timed intervals, apples are removed, one becomes a lemon, and another is filtered out via key-based data binding, while mouseover and mouseout event handlers trigger `setSelectedCircle` to update the selection state.

AI-generated description
MIT Licensed

Similar vizzes