🌍 Public
Viewing a saved revision (read-only)
7f5abd854f484d129011724ec2ee272b
Fork of React & D3 Starter
A pie chart displays population figures for China, India, the USA, Indonesia, and an aggregated "Others" category in millions. Built with React and D3 v7, the visualization uses `d3.pie()` and `d3.arc()` to generate SVG paths, with a categorical color scale from `d3.schemeTableau10`. A manually positioned SVG legend lists each country name with its corresponding population value. The chart renders entirely through direct DOM manipulation via `d3.select` within a React application.
AI-generated description