Skip to main content
100%

Fork of D3 Starter

✓ Published0🌍 Public
Eelisabet@pitch.io
Last edited Jan 14, 2025
Created on Jan 14, 2025
Forked from D3 Starter

This example demonstrates how D3 v7 masks can create striking geometric patterns from overlapping shapes. It uses `d3.select`, `d3.range`, `d3.symbols`, and `d3.symbol` to render seven distinct SVG symbols (like crosses and diamonds) into two complementary masks, one inverted. Over these masks, it places grids of black horizontal and vertical rectangles via SVG `rect` elements, with `d3.join` managing data-bound elements. The resulting composition shows the symbols as cutouts or solid forms depending on mask polarity, producing a dynamic interplay of positive and negative space across the full browser window.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes