Skip to main content
100%

Question1

✓ Published0🌍 Public
PPadmajaKodati@my.unt.edu
Last edited Apr 12, 2024
Created on Apr 12, 2024
Forked from Fork of Question1

A pie chart visualizes population distribution across Indian states, with each slice labeled by state name and percentage of the total population. The chart uses D3 v7's `pie` and `arc` generators to compute slice geometry, `scaleOrdinal` with `schemeCategory10` for colors, and SVG `path` elements for rendering. A custom legend displays each state's name, population in millions, and percentage, while labels positioned via `arc.centroid` show percentages directly on slices. Data comes from a CSV file loaded with `d3.csv`, formatted with custom number and percentage helpers.

AI-generated description
MIT Licensed

Similar vizzes