Skip to main content
100%

Assignment 2 Pie Chart

✓ Published1🌍 Public
Ggnanendra097@gmail.com
Last edited Apr 10, 2024
Created on Apr 8, 2024
Forked from Hello VizHub

This D3.js pie chart displays the distribution of land areas by country, using a categorical color scheme and white strokes to separate slices. The chart labels each slice with its country name at the centroid, and includes a legend positioned to the right. The visualization renders as SVG, with data pulled from a remote CSV file. The code uses `d3.scaleOrdinal`, `d3.pie`, `d3.arc`, and `d3.csv` to construct the chart, while labels and axis titles are positioned via SVG transforms.

AI-generated description
MIT Licensed

Similar vizzes