Skip to main content
100%

pie_chart_question1

✓ Published0🌍 Public
Ssairam.amaraneni22@gmail.com
Last edited Apr 21, 2024
Created on Apr 21, 2024
Forked from pie chart

This pie chart shows the population of various U.S. states in millions for 2024, with each slice labeled with its value and a corresponding color-coded legend. The visualization uses D3.js (v5) to load CSV data from a GitHub repository, then applies `d3.pie()` to compute arc segments. The SVG canvas renders the chart with custom path segments, and `d3.scaleOrdinal` assigns distinct colors to each state's population value. Text labels and legend entries are generated dynamically using D3's `arc` and `select` APIs.

AI-generated description
MIT Licensed

Similar vizzes