Fork of D3 Starter
✓ Published1🌍 Public
This example demonstrates a striped mask effect by layering two sets of rectangles with intersecting patterns. The SVG output shows vertical black bars overlaid with horizontal black bars, where both layers use SVG masks to reveal or hide portions of the rectangles. The code uses D3 v7’s `select`, `range`, and `data` joins to generate 100 rectangles per axis across the full viewport. The first mask exposes a rectangular region while the second mask inverts it, creating a dynamic checkerboard-like visual from the overlapping shapes.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed