Skip to main content
Public

Share visualization

Loading preview…

Variable-Sized Bouncing Balls Rainbow Visualization

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

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

Viewing a saved revision (read-only)

D31HAzNZDDJkkIZjvf0Pl

Variable-Sized Bouncing Balls Rainbow Visualization

0 stars1Public
CCurran Kelleher
Last edited Nov 9, 2026
Created on Nov 8, 2026
Forked from React D3 Starter

Five circles plotted from a small CSV file sit against a rainbow gradient background, each assigned a distinct color from D3's `schemeTableau10`. Clicking a circle enlarges it, applies a thicker stroke, and dims the others, while clicking again toggles selection off. The visualization uses `scaleLinear` for x/y positioning, `scaleOrdinal` for color mapping, and React state via `useState` to track the selected circle ID. A `ResizeObserver` hook feeds container dimensions into D3's `selection` API to re-render responsively.

AI-generated description

Funky Gradient Bubbles

Colorful glossy balls bounce around the viewport, collide with one another, and respond to clicks. Click a ball to highlight it.

References