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