Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

pie_chart_question1

Public visualization

Viewing a saved revision (read-only)

be424906a88648a882d12187812fd8a2

pie_chart_question1

0 stars0🌍 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