Skip to main content
Public

Share visualization

Loading preview…

Episode 4: Sol LeWitt Reproduction 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

Episode 4: Sol LeWitt Reproduction with D3

7
KKaustav Sen
Last edited May 15, 2021
Created on May 14, 2021
Forked from HTML Starter

This piece reproduces a Sol LeWitt wall drawing by dividing the viewport into four quadrants, each displaying a distinct pattern of narrow black lines: horizontal, vertical, and two diagonal sets. The design uses D3 selections and masks to clip these lines into separate square regions. The code creates SVG rectangles via `selectAll` and `join`, with each quadrant’s pattern masked using SVG `<mask>` elements. The example relies on D3 v6 and renders purely as SVG, without external data, highlighting the minimal geometry of LeWitt’s original work.

AI-generated description

Trying to reproduce a Sol LeWitt art piece using D3. Inspired by the original piece here.

Comments

Sign in to join the discussion.

MIT Licensed