Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of fruit - Event Handlers

Public visualization

Viewing a saved revision (read-only)

996624f3613d4816b881c0ba82fc27e6

Bowl of fruit - Event Handlers

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