🌍 Public
Viewing a saved revision (read-only)
45e38ab0e5fe4e6f96ebec438f3f4507
Assignment2_Question1(PieChart)
This pie chart displays the population distribution of major cities, with each slice labeled by its population value in thousands and accompanied by a legend identifying the corresponding state. The chart uses D3.js v5 APIs including `d3.pie` and `d3.arc` to generate the SVG paths, and `d3.scaleOrdinal` for slice coloring. Data is loaded asynchronously via `d3.csv` from a GitHub repository, with values formatted using `d3.format`.
AI-generated description