Skip to main content
100%

Pie Chart

✓ Published1🌍 Public
Bbrindapotluri
Last edited Mar 28, 2022
Created on Mar 28, 2022
Forked from Hello VizHub

A pie chart displays the population distribution of the top ten most populous countries, with each slice sized proportionally and color-coded via a categorical scale. The chart renders as an SVG, generated from CSV data loaded from a GitHub gist. Using d3.pie and d3.arc, the visualization constructs the circular segments, while d3.scaleOrdinal with schemeCategory10 assigns slice colors. A legend on the right lists each country with its corresponding color swatch and population value, and hovering over a slice logs the population to the console.

AI-generated description
MIT Licensed

Similar vizzes