manojsai_bangaru_pie_chart
✓ Published0🌍 Public
This pie chart visualizes CO₂ emissions by country, with each slice labeled by the country's name and a legend on the left displaying the country names alongside their respective values. The chart is built using D3 v7 APIs, including `d3.pie`, `d3.arc`, and `d3.arc().centroid` to position labels within the slices. Data is loaded from a CSV file via `d3.csv`, and colors are assigned using `d3.scaleOrdinal` with the `d3.schemeSet3` palette.
AI-generated descriptionMIT Licensed