Skip to main content
Public

Share visualization

Loading preview…

Bowl of fruit - Click to select

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

Bowl of fruit - Click to select

1
PPeter S
Last edited Aug 17, 2019
Created on Aug 17, 2019
Forked from Bowl of fruit

A bowl of fruit demonstrates interactive selection with animated SVG transitions in React. Apples render as red circles and lemons as yellow circles, with click-to-select highlighting the chosen fruit with a black outline. The example uses d3.scaleOrdinal for color and radius mapping, while d3 transitions animate circle radius changes when fruits are added or removed. Data updates occur through timed functions that remove, replace, and filter fruit array elements, showcasing enter, update, and exit selections.

AI-generated description

An example showing the capabilities of VizHub.

Comments

Sign in to join the discussion.

MIT Licensed