Skip to main content
Public

Share visualization

Loading preview…

Ball of Fruits- Hover 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- Hover interaction

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

Five circles render as apples that morph and reorder into a static row until one fruit shrinks and a later fruit turns into a lemon. Hovering a fruit highlights its stroke in purple via a mouseover handler that updates a selectedFruit state. The visualization uses d3’s scaleOrdinal for color and radius, transition().duration() for 1000ms position and size animations, and SVG circle/text elements. Data is generated in JavaScript with range() and Math.random().

AI-generated description

Ball of Fruits- Interaction

Comments

Sign in to join the discussion.

MIT Licensed