Skip to main content
100%

textured pie chart

✓ Published0🌍 Public
Zzoniyac
Last edited Apr 23, 2020
Created on Apr 23, 2020

This example shows an area chart with three stacked series, where each series is filled with a distinct geometric texture pattern instead of color. The chart plots the number of individuals named Helen, Amanda, and Ashley over time from a CSV dataset. The code uses D3 v4 with `d3.stack`, `d3.area`, and `d3.scaleOrdinal` to build the chart, while the `textures` library generates SVG patterns for circles, lines, and crosses via `textures.circles()`, `textures.lines()`, and `textures.paths()`. The patterns are applied as fill URLs through the ordinal scale, with black strokes separating each area.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes