🌍 Public
Viewing a saved revision (read-only)
99f261a8ce264e9b8e0bdd01f0d64323
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