Skip to main content
100%

SVG Stripes

✓ Published0🌍 Public
SSpaceActuary
Last edited May 13, 2016
Created on May 13, 2016

A striped pattern fills a large rectangle, with gray diagonal lines created by a tilted SVG pattern. The example uses D3.js version 3.5.5 to construct an SVG `defs` element containing a `pattern` that rotates 45 degrees, then applies it as the fill for a single `rect` via CSS. The pattern itself is drawn with a simple `line` element, and the rectangle is positioned and sized through D3’s attribute chaining. This demonstrates how to define reusable SVG patterns programmatically with D3.

AI-generated description

Built with blockbuilder.org

Similar vizzes