Skip to main content
Public

Share visualization

Loading preview…

Fork of Bowl of Fruit - Animated Transitions

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportHTML, source ZIP

Fork of Bowl of Fruit - Animated Transitions

0 stars0Public
Mmroufail72
Last edited Nov 13, 2026
Created on Nov 13, 2026

This example demonstrates animated transitions of a row of circles representing apples and lemons, with items appearing, changing type, and being removed. It uses the D3.js library (v5) with the `scaleOrdinal` color and radius scales to map fruit types to visual properties. Transitions are executed via the `transition` API, animating the `cx` and `r` attributes over one second. The scenario is scripted with `setTimeout` calls that modify an array of fruit objects and re-render the SVG scene.

Comments

Sign in to join the discussion.

MIT Licensed