Skip to main content
Public

Share visualization

Loading preview…

Fork of D3 Selection Exploration

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

Fork of D3 Selection Exploration

0
YYingkai Song
Last edited Dec 3, 2022
Created on Dec 3, 2022

Roughly 15 circles, each with a radius of 100, are initially positioned at x=400 by a D3 v3 selection bound to an array of indices. The visualization then repeatedly updates these SVG circles using `vizData`, which employs `selection.join('circle')` to bind new data from `makeData`, a function that computes circle positions, radii, and y-coordinates based on a sine wave and a time parameter t. This creates an animated, undulating pattern across the screen. The page is styled with a hidden overflow, and the circles' attributes are set directly via `attr` calls without CSS transitions.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed