Skip to main content
Public

Share visualization

Loading preview…

Bowl of Fruit - Click ti 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 ti Select

1
Aanuj1450
Last edited Nov 4, 2020
Created on Nov 4, 2020

Clicking a fruit in this SVG bowl selects it, highlighting the chosen item with a black outline while all others remain unhighlighted. The visualization demonstrates animated enter, update, and exit transitions using D3 v5, with circles smoothly resizing and repositioning as apples are eaten or replaced by lemons. Fruit types map to distinct colors and radii via ordinal scales, and selection is handled through click events that re-render the scene. The example uses D3 selections, transitions, and scaleOrdinal to manage the dynamic dataset.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed