🌍 Public
Viewing a saved revision (read-only)
fe8d484e24ea4e3386349c80c83006b4
Fork of [TEST] Pie Chart
This example shows the religious composition of twelve countries as a pie chart, with each slice colored and labeled in a legend that displays the percentage of the total population. The chart is built using D3 v5, with `d3.pie()` generating the arc data and `d3.arc()` rendering the SVG paths. The data is loaded from a CSV file via `d3.json`, and values are converted from strings to numbers. The chart uses a custom color scale and positions the legend to the right of the pie.
AI-generated description