Skip to main content
100%

textured pie chart

✓ Published1🌍 Public
Zzoniyac
Last edited May 12, 2020
Created on May 12, 2020
Forked from textured pie chart

This example shows a pie chart whose five slices are filled with distinct geometric textures instead of solid colors. Each slice uses a different pattern generated with the `textures` library, including hexagons, crosses, caps, woven, and waves. The chart is built using `d3.pie` and `d3.arc` to compute the slice paths, while `d3.scaleOrdinal` maps each data category to a texture URL. Rendered as an SVG, the chart includes a black stroke around each slice to visually separate the textured areas.

AI-generated description

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

MIT Licensed

Similar vizzes