🌍 Public
Viewing a saved revision (read-only)
ba7595e92b504eb39b4e763da880a338
pie chart
This pie chart displays the proportional sales distribution across countries for the year 2020, using a dataset of students loaded via `d3.csv`. The visualization renders each country as a colored slice with labels positioned at the centroid of each arc. It uses D3 v7’s `d3.pie()` and `d3.arc()` generators to compute and draw the arcs, with `d3.scaleOrdinal` and `d3.schemeCategory10` providing categorical colors. A legend on the right maps colors to country names, and the SVG output is created within a fixed 600×400 pixel canvas.
AI-generated description