Skip to main content
100%

Fork of Task 10 question 1

✓ Published5🌍 Public
SSreeKohaliPatel@my.unt.edu
Last edited Apr 25, 2024
Created on Apr 25, 2024
Forked from Task 9 question 1

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 description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes