🌍 Public
Viewing a saved revision (read-only)
f04a3807df33465d9514d744901523ce
Fork of Fork of Pie Chart
This visualization displays city population data as a pie chart, with each slice colored distinctly and accompanied by a legend showing city names and population counts. Built with D3 v5 and rendered as SVG, it uses `d3.pie` and `d3.arc` to compute and draw the pie segments, while `d3.scaleOrdinal` assigns colors. Data is loaded from a CSV file via a gist URL using `d3.csv`, and the chart positions the pie with a fixed translation and labels with custom text elements.
AI-generated description