Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity7.1_Question1

Public visualization

Viewing a saved revision (read-only)

6cf8b741a5614c829626b30d9e2a2a6c

Activity7.1_Question1

0 stars0🌍 Public
SSai Praveen Lokavarapu
Last edited Apr 11, 2025
Created on Apr 11, 2025
Forked from Hello VizHub

This pie chart visualizes population distribution by age group, with slices labeled and a color-coded legend for reference. The data is loaded from a remote CSV file via `d3.csv`, and the chart is rendered using `d3.pie` to compute arc segments, `d3.arc` for path geometry, and `d3.scaleOrdinal` with a category color scheme. Labels are positioned at each arc’s centroid, and the SVG output uses a `d3.select`-based join to append paths and text elements dynamically.

AI-generated description