Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

textured pie chart

Public visualization

Viewing a saved revision (read-only)

6c2014aa42154d0fbf6a61394e94c2df

textured pie chart

0 stars0🌍 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.