Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of Fork of Pie Chart

Public visualization

Viewing a saved revision (read-only)

9ae746c83c864cd1915f192e1485d26b

Fork of Fork of Fork of Fork of Pie Chart

0 stars0🌍 Public
Bbindhureddy98
Last edited Mar 26, 2022
Created on Mar 26, 2022

This example shows the top 10 countries by population as a pie chart, with a legend displaying brand names and values. It loads CSV data via `d3.csv`, processes it, and renders the chart using `d3.pie` and `d3.arc` to create the segments. Color encoding is handled with `d3.scaleOrdinal`, and the SVG output is appended to the document. The visualization highlights the proportional population distribution among the countries.

AI-generated description