Skip to main content
Public

Share visualization

Loading preview…

Dataviz 1 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

Dataviz 1 Circles with D3

0
YYiyi Wu
Last edited Sep 9, 2024
Created on Sep 4, 2024
Forked from Circles with D3

This example renders two layered SVG scenes on top of each other, each filling the container. The first scene draws seven semi-transparent circles with varying radii and positions, while the second places seven rectangles at matching coordinates, creating a mixed geometric composition. Both layers use a pastel green background and encode data through position, size, and color. The visualization is built with D3 v7, using `select`, `selectAll`, `data`, and `join` to bind static arrays of circle and rectangle objects to SVG elements. It demonstrates a simple declarative approach to generative art without interactivity or animation.

AI-generated description

Fall 2024 dataviz hw1

Comments

Sign in to join the discussion.

MIT Licensed