🌍 Public
Viewing a saved revision (read-only)
0189c1c6bcc54dd6a366c048246023ac
Data Visualization ICE-7 Pie Chart
This pie chart displays country birthrates for 2021, with each slice labeled by its percentage and a corresponding legend listing country names and values. It uses D3 v5’s `pie`, `arc`, `scaleOrdinal`, and `csv` to load and process data from a GitHub gist, then renders the chart as SVG. The `arcGenerator` computes slice centroids for text placement, while `format` applies concise numeric labels. Section colors are assigned via an ordinal scale, and legends are dynamically appended with rectangles and text.
AI-generated description