Fork for country and budget
✓ Published0🌍 Public
This is a D3.js v5 pie chart built with SVG, visualizing country budgets for 2012. The chart uses `d3.pie` to compute arc segments and `d3.arc` to generate the path geometry, with each slice colored using `d3.scaleOrdinal`. The visualization includes a legend showing each country name and its budget value in thousands, with the data loaded from a CSV file using `d3.csv`. The code also uses `d3.select` to target the SVG element and `d3.format` for tick labels.
AI-generated descriptionMIT Licensed