Skip to main content
Public

Share visualization

Loading preview…

Sol LeWitt Repro w/ D3 - different method

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

Sol LeWitt Repro w/ D3 - different method

0
Hhelloelectro
Last edited Feb 12, 2023
Created on Feb 12, 2023

This example reproduces a Sol LeWitt-inspired wall drawing by filling the screen with horizontal and vertical striped rectangles. It creates 100 rows and 100 columns, each 10 pixels thick, and layers them using two SVG masks to reveal a circular cutout where the orientations intersect. The visualization uses D3 v7’s `select`, `range`, and `join` to append SVG elements, while separate mask definitions with black and white fills control visibility. Rendering is fully SVG-based, with window dimensions driving the canvas size.

AI-generated description

Combined element creation (.append) w/ adding to DOM Also using classes to separate mask ('rect') elements

Comments

Sign in to join the discussion.

MIT Licensed