Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie chart Visualization

Public visualization

Viewing a saved revision (read-only)

3faceed492184ccf83f58f6711b60a2c

Pie chart Visualization

0 stars0🌍 Public
DDanthalakirankumar
Last edited Mar 28, 2022
Created on Mar 28, 2022

This pie chart visualizes the top 10 Indian states by population, with each slice colored distinctly and paired with a legend listing state names and population values in thousands. Built with D3 v5, the code loads CSV data from a GitHub gist via `d3.csv`, computes arc segments using `d3.pie` and `d3.arc`, and renders the chart as SVG. Color mapping uses `d3.scaleOrdinal`, while numeric labels are formatted with `d3.format`. The legend is manually appended alongside the pie, and no interactivity is implemented.

AI-generated description