Fork of Fork of Fork of Fork of SVG Fundamentals - D3 (group)
✓ Published1🌍 Public
SSidney Oluoch
Last edited Aug 18, 2022
Created on Aug 18, 2022
Forked from Fork of Fork of Fork of SVG Fundamentals - D3
This example demonstrates a grid-based pattern created by overlaying horizontal and vertical rectangles, each clipped by a circular mask to reveal a central window. The visualization uses D3’s `select`, `range`, `append`, and `join` APIs to generate 100 vertical and 100 horizontal bars, which are grouped in separate `<g>` elements. Two SVG masks (`circle-mask` and `circle-mask-2`) apply inverse coloring to the bars, producing a crosshatched effect that is visible only within the circular region. The code runs in React and renders fully with SVG, drawing on D3 version 7.6.1.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed