🌍 Public
Viewing a saved revision (read-only)
e98efa17b28d40d090d62b9b8c872f13
ICE7 - Pie Chart
This pie chart visualizes the population of ten major world cities in 2022, using data from a JSON file and rendered as an SVG. The D3 v5 code uses `d3.pie` and `d3.arc` to generate the chart, with a custom color scale and a legend that lists each city, its label, and its population value formatted with SI prefixes. The chart is positioned with a transform, and the legend is built using D3’s selection and append methods.
AI-generated description