Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Ball of fruit

Public visualization

Ball of fruit

0 stars0🌍 Public
SSaroj Khanal
Last edited Jul 20, 2020
Created on Jul 20, 2020
Forked from Ball of fruit

A bowl of fruit animation shows five apples shrinking and disappearing, with one apple transforming into a lemon and a second apple being removed entirely. The D3.js v5 and `scaleOrdinal` API map fruit types to distinct radii and colors, while the `transition().duration()` method animates the circle radii over one-second intervals. The SVG circles enter with a radius of zero, expand to their assigned size, and exit by shrinking back to zero, driven by timed `setTimeout` callbacks that mutate the fruit data array.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed