Viewing a saved revision (read-only)
818e24d4a2904435adb6b4395a364fa0
textured pie chart
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 descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.