🌍 Public
Viewing a saved revision (read-only)
6e52e53f86b44e14b9f5e972e0a35b10
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