Skip to main content
100%

Pie Chart

✓ Published0🌍 Public
Uubl2
Last edited Mar 24, 2022
Created on Mar 24, 2022
Forked from Pie Chart

A pie chart displays GDP per capita for ten countries from a CSV file, with color-coded slices and a legend showing country names and GDP values in billions. Built with D3 v5, the visualization uses `d3.pie()` and `d3.arc()` to generate SVG paths, `d3.scaleOrdinal` for color mapping, and `d3.format` for numeric labels. The data is loaded asynchronously via `d3.csv` from a gist URL, and the legend is manually positioned with rect and text elements.

AI-generated description
MIT Licensed

Similar vizzes