Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity - 7_Question - 1

Public visualization

Viewing a saved revision (read-only)

74166092775144e2b276380d4a367ab3

Activity - 7_Question - 1

0 stars0🌍 Public
Mmalisettisaisumanth@gmail.com
Last edited Apr 10, 2025
Created on Apr 10, 2025
Forked from Hello VizHub

This pie chart displays population distribution across continents, with each slice labeled and a matching color-coded legend positioned to the right. The visualization loads CSV data from a GitHub-hosted dataset using `d3.csv`, parses the population values, and renders the chart as SVG. It uses `d3.pie()` to compute arc angles, `d3.arc()` to generate the slice paths, and `scaleOrdinal` to assign categorical colors. The chart includes a bold title and centers the pie within a 600x400 SVG element.

AI-generated description

A demonstration of a reusable pie chart. This example uses D3 to render a pie chart from a dataset with 50 rows.