Skip to main content
100%

Pie chart Visualization

✓ Published0🌍 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
MIT Licensed

Similar vizzes