REUSABLE SCATTER - Rajan
✓ Published0🌍 Public
Kkhushburajan2015@gmail.com
Last edited Oct 26, 2025
Created on Oct 26, 2025
This interactive pie chart displays the population share of the top 8 U.S. cities compared to an aggregated "Other" category, with each slice labeled and color-coded. Built with the D3.js v7 library, the visualization programmatically computes the top cities from a provided CSV file and dynamically renders the pie using the `d3.arc` and `d3.pie` APIs for sector paths and layout, while a custom HTML legend updates alongside. The chart transitions smoothly using D3’s default animation on load, showing proportional percentages for each metropolitan area.
AI-generated descriptionMIT Licensed