Skip to main content
100%

Visualization

✓ Published1🌍 Public
DDaniel R Handoko
Last edited Aug 6, 2023
Created on Aug 6, 2023
Forked from D3 Starter

This visualization creates a striped pattern of horizontal and vertical bars that are selectively revealed through two SVG masks. The masks use alternating black-and-white rectangles and D3 symbols to alternate visibility of the grid lines, producing an overlapping geometric composition. Built with D3 v7, the code uses `select`, `range`, `scaleBand`, and `symbol` to generate the shapes, while `append('mask')` and `attr('mask', ...)` control the clipping. The rectangles are sized based on `window.innerWidth` and `window.innerHeight`, with the pattern repeated 120 times across the screen.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes