Skip to main content
Public

Share visualization

Loading preview…

Ball of Fruits- Interaction

vizhub.com

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

Before sharing, review the publishing checklist.

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 & exportPNG, HTML, source ZIP

Ball of Fruits- Interaction

1
FFoysal Ahmed Emon
Last edited Feb 8, 2020
Created on Feb 8, 2020

A set of colored circles represents fruits in a bowl, with apples shown in red and lemons in yellow. Users click a fruit to highlight it with a purple outline, while the entire group smoothly rearranges its positions over time. The visualization uses D3's selection and transition APIs, including `selection.transition().duration()` and `.merge()` to animate enter, update, and exit states. The code relies on `d3.select`, `d3.range`, and `d3.scaleOrdinal` for data generation and color/radius mapping, with data defined as an array of fruit objects that are modified asynchronously.

AI-generated description

Ball of Fruits- Interaction

Comments

Sign in to join the discussion.

MIT Licensed