ICE7 - Pie Chart
✓ Published0🌍 Public
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 descriptionMIT Licensed