Skip to main content
100%

Q1_Activity7.1

✓ Published2🌍 Public
Rrahman.mehmood2002@gmail.com
Last edited Oct 31, 2024
Created on Oct 30, 2024

This pie chart displays world population distribution by country, loading data from a GitHub Gist CSV file and rendering it as an SVG visualization. The code uses d3.csv to fetch the dataset, d3.pie() to compute arc angles from population values, and d3.arc() to generate the path geometry for each slice. Each slice is colored using d3.scaleOrdinal with d3.schemeCategory10, with population values displayed as white labels at arc centroids. A custom legend on the right lists countries alongside colored rectangles, and the chart includes a bold title above the visualization.

AI-generated description

Question1

MIT Licensed

Similar vizzes