Fork of React & D3 Starter
✓ Published0🌍 Public
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 descriptionMIT Licensed