🌍 Public
Viewing a saved revision (read-only)
1b054d0e2b974fab9b9f83e4791a850c
Fork of Internet Area chart
This example displays a pie chart of population distribution by region, with each slice labeled and colored according to its region. The visualization loads a CSV dataset from a GitHub gist using the `d3.csv` load function. It constructs the chart using D3.js v6, employing the `d3.pie()` and `d3.arc()` generators to create the pie slices. The `d3.scaleOrdinal` scheme provides categorical colors, and the SVG output is rendered within a 500x500 pixel canvas. The chart's labels are positioned using the arc centroid calculation.
AI-generated description