Skip to main content
100%

pie chart

✓ Published0🌍 Public
Vvishnupriya eupuri
Last edited Mar 27, 2024
Created on Mar 27, 2024

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
MIT Licensed

Similar vizzes