Skip to main content
100%

testD3 Sol LetWitt Reproduction

✓ Published1🌍 Public
Ggaoqing027
Last edited Jul 18, 2023
Created on Jul 18, 2023
Forked from Hello VizHub

This example reproduces a Sol LeWitt-style drawing using D3.js, where a grid of horizontal and vertical rectangles is rendered in SVG. The code uses `d3.select` to append an SVG canvas and `d3.range` to generate 100 equal intervals, creating thin striped bars. Two masks, each containing a circle, control visibility: one mask makes the horizontal bars disappear outside a central circle while the other does the opposite for vertical bars, producing an overlapping circular pattern. The dimensions adapt to the full browser window.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes