🌍 Public
Viewing a saved revision (read-only)
10a5bcdb0c524fb6912aba3894a405bb
2.1.1
This pie chart visualization displays the Air Quality Index (AQI) by country, with each slice sized proportionally to the index value. The data loads from a CSV file, with the index parsed as a numeric value and countries sorted in descending order. Using d3.pie and d3.arc, the SVG renders colored slices, a legend with country names and formatted index values, and a title. A d3.scaleOrdinal with schemeCategory10 assigns colors, while the chart groups transform to center the pie.
AI-generated descriptionAir Quality Data Pie Chart gist = 'https://gist.githubusercontent.com/SeshadriKamini7/40caec3702df55ad0799d3757b4e8dc1/raw/584ea90fbfac1d2c195c283b5c79c630ae05a945/Air_Quality.csv'