Skip to main content
Public

Share visualization

Loading preview…

Marks and Channels Shape using 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

Marks and Channels Shape using D3

1 star0Public
KKCachel
Last edited Nov 5, 2018
Created on Sep 7, 2018
Forked from HTML Cars Report

This example uses D3 to draw a square outline with a set of lines and circles within it, arranged to explore the marks-and-channels concept of shape. The code leverages D3’s SVG manipulators—appending a `<rect>`, `<line>`s, and `<circle>`s via `select`, `append`, and `attr`—with fixed coordinates to create a geometric composition. Rendered as SVG on a white background, the square’s stroke and fill, the gray lines, and the dark circles demonstrate varied visual channels.

AI-generated description

Shape attempt made by Kathleen Cachel

I learned from the face and pentagon examples. Along with looking up some syntax at dashing d3.

4

Comments

Sign in to join the discussion.

MIT Licensed