Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of fruit

Public visualization

Bowl of fruit

0 stars1🌍 Public
MMatan
Last edited Nov 9, 2020
Created on Nov 8, 2020

A bowl of fruit is a D3.js example demonstrating fundamental DOM manipulation, showing a sequence of animated changes to a set of circles representing fruits. The visualization uses d3.select and d3.range to manage the SVG elements, with d3.scaleOrdinal mapping fruit types to colors and radii. A series of setTimeout calls triggers transitions: a circle is removed, one changes from an apple to a lemon, and another is filtered out, all animated over one-second durations using the selection.merge() and selection.exit() methods.

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