Skip to main content
100%

Data Visualization ICE-7 Pie Chart

✓ Published0🌍 Public
MManasaPatange
Last edited Mar 27, 2022
Created on Mar 26, 2022
Forked from [TEST] 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
MIT Licensed

Similar vizzes