Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork 2 of Pie chart

Public visualization

Viewing a saved revision (read-only)

da6f222db9e34244abc1e9d61eb1c267

Fork 2 of Pie chart

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

This visualization displays a pie chart of the top 10 countries by population in 2022, with each slice labeled with its population value in thousands and accompanied by a color-coded legend showing country names and corresponding figures. It uses d3.csv to load population data from a gist URL, then constructs the chart with d3.pie, d3.arc, and d3.scaleOrdinal. The rendering relies on SVG elements generated through D3 v5 selection and data-join methods, with colors, text labels, and legend items all created inside a single SVG canvas.

AI-generated description