🌍 Public
Viewing a saved revision (read-only)
1b547d91c12a4e9e840cd03c264e40fa
Chandrika of Pie Chart
This example visualizes world population distribution by country as a pie chart, with each slice labeled by its percentage and accompanied by a scrollable legend. It loads CSV data from a GitHub repository using `d3.csv`, converts the population percentages to numbers, and renders arcs with `d3.pie` and `d3.arc` in an SVG. Slice colors come from `d3.schemeCategory10`, while hover interactions show a tooltip with country and percentage details.
AI-generated description