Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie chart

Public visualization

Fork of Pie chart

0 stars2🌍 Public
Ppavankalyan1507
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from Pie chart

This visualization uses a D3 pie chart to display the top 10 countries by population in 2022. The code fetches data from a GitHub-hosted CSV file and renders the chart as SVG. Each slice is labeled with its population value in thousands, and a legend on the right side pairs country names with their corresponding values and color swatches. The chart uses D3’s `pie()`, `arc()`, and `scaleOrdinal()` APIs to compute slice angles, generate arc paths, and assign colors, respectively.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed