Skip to main content
Public

Share visualization

Loading preview…

Fork of Circles with D3

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 Circles with D3

0
BBrian Hulbert
Last edited Aug 27, 2025
Created on Aug 27, 2025
Forked from Circles with D3

This example visualizes a polynomial function as a series of fixed-size red circles plotted across a green background. The circles are positioned by evaluating the polynomial y = x² + 3x + 2 at negative increments between -10 and 10, then scaling both coordinates to fit the container dimensions. Using D3 v7, the code selects and joins circle elements via `select().selectAll().data().join()`, applying `cx`, `cy`, `r`, `fill`, and `opacity` attributes. The rendering is computed directly from polynomial constants rather than external data.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed