Fork of Task 10 question 1
✓ Published5🌍 Public
This example shows a pie chart of population data for the top ten countries, displaying each slice with a percentage label and a legend identifying the country. The chart is built with React and D3 version 5, using the `pie` and `arc` generators to compute the layout and path data, while `d3.schemeCategory10` assigns colors. It loads a CSV from a GitHub repository via `d3.csv`, transforms the population values, and renders the SVG dynamically through a React effect. The example also includes an inner radius and axis labels for styling and context.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed