Skip to main content
100%

textured pie chart

✓ Published2🌍 Public
Zzoniyac
Last edited Apr 22, 2020
Created on Apr 20, 2020

This textured pie chart displays categorical data using SVG paths filled with five distinct pattern-based textures instead of solid colors. The visualization relies on the D3.js v4 library for chart construction and the textures package to generate repeating geometric motifs, including circles, lines, hexagons, and crosses. D3's pie function computes the arc segments from the input data, while `d3.arc` defines the path geometry. Each slice’s fill references a texture URL mapped through `d3.scaleOrdinal`, and the chart is centered within a 450×450 SVG canvas with a black stroke outlining every segment.

AI-generated description

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

MIT Licensed

Similar vizzes