Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of Fruit - Click to select

Public visualization

Bowl of Fruit - Click to select

0 stars1🌍 Public
Nnsadath
Last edited Dec 11, 2020
Created on Dec 11, 2020

This example shows an interactive bowl of fruit where circles represent apples and lemons, colored red and yellow via a d3.scaleOrdinal. Clicking a fruit selects it, logging the ID. The visualization uses d3 transitions to animate circles entering with radius 0, growing to size based on fruit type, and exiting by shrinking. Data changes occur over time: a fruit is removed, an apple transforms into a lemon, and another is filtered out, all rendering through a React-based d3 data join with keyed selection on fruit IDs.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed