Skip to main content
Public

Share visualization

Loading preview…

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

Fruit: Click to Select

1
LLeora Wenger
Last edited Dec 19, 2018
Created on Dec 2, 2018

This example demonstrates five fruits as circles that grow into apples or lemons over time. A user can click any fruit to select it, which adds a black stroke. Data updates remove fruits, change types, and trigger smooth size transitions using the D3 v5 selection API and `transition().duration()`, while the `scaleOrdinal` scales map fruit types to colors and radii.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed