🌍 Public
Viewing a saved revision (read-only)
a2845f82c2c64e8dbe6760ab38e274ca
Pie Chart Black Hat
This pie chart visualizes categorical data with labeled slices using D3 v6. Eleven groups (a through k) are encoded as colored arcs with black strokes and 0.7 opacity, created through the `d3.pie` and `d3.arc` generators. The SVG rendering includes group labels positioned via `arcGenerator.centroid`, with colors assigned from the `d3.schemeSet2` ordinal scale. The chart uses dummy data embedded in the code and renders within a React-ready HTML page.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.