Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie Chart

Public visualization

Viewing a saved revision (read-only)

af4f879d4a2a40ceb63f0230a8fd6afc

Pie Chart

0 stars0🌍 Public
Pprajoth0405
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from Pie Chart

This pie chart displays the population of states for the year 1994, with each slice colored distinctly and accompanied by a legend showing the state name and population value in thousands. The visualization loads CSV data from a GitHub gist using `d3.csv`, processes it in an async function, and renders the pie using `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` for color mapping, all drawn as SVG elements within a fixed 960x500 viewport. The legend and value labels are appended as SVG groups with formatted numbers via `d3.format`.

AI-generated description