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

0
HHe110wor1d
Last edited Apr 17, 2020
Created on Apr 17, 2020

Five apples are arranged in a row as SVG circles, with the currently selected fruit highlighted by a black outline. Clicking an apple triggers a callback that updates the selection state. Built with React and D3 v5, the visualization uses `scaleOrdinal` for color and radius mapping, with `useState` managing the selected fruit’s ID.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed