Skip to main content
100%

Pattern Module Demo 2

✓ Published0🌍 Public
Aandrew-reid
Last edited Jan 8, 2018
Created on Jan 9, 2018

Six circles in a row demonstrate six custom SVG pattern types generated by a reusable D3 module. The patterns include striped, plaid, square, symbol-based, dotted, and checkerboard designs, each created programmatically through the `d3.patternStripes`, `d3.patternPlaid`, `d3.patternSquares`, `d3.patternSymbols`, and `d3.patternDots` functions. Each circle uses a distinct pattern fill, with options such as custom colors, widths, angles, and opacity. The code relies on d3-selection-multi.v1 for attribute chaining and renders SVG with D3 v4.

AI-generated description

A second quick demo of this attempt at a d3 module for patterns.

This example shows how to modify the patterns, while the linked block only shows default characteristics.

Similar vizzes