Skip to main content
100%

textured pie chart

✓ Published0🌍 Public
Sswapnil
Last edited May 24, 2020
Created on May 24, 2020
Forked from textured pie chart

This example shows a textured pie chart that visualizes data from a CSV file containing postal codes. The chart uses D3.js version 4 to compute the pie layout with `d3.pie()` and render each slice as an SVG path via `d3.arc()`. Distinct geometric patterns—hexagons, crosses, caps, woven, and waves—are applied to the slices using the Textures library’s `textures.paths()` API, combined with a custom color scale. The data is fetched asynchronously from `postalCodes.csv` using the Fetch API.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes