Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of fruit

Public visualization

Bowl of fruit

0 stars1🌍 Public
Cceresfin
Last edited Jan 31, 2021
Created on Jan 30, 2021

A bowl of five apples rendered as SVG circles uses D3's enter, merge, and exit selections to update the scene. Over time, apples disappear, one transforms into a lemon, and colors and radii shift via ordinal scales and smooth transitions. The animation runs through timed JavaScript calls, with data bound to random IDs for stable updates. D3 v5's selection methods and transition API drive the changes, replacing apples with lemons at fixed x-positions.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

Comments

Sign in to join the discussion.

MIT Licensed