Fork of Fork of Fork of ICE - 7 Pie Chart Maanas Katta
✓ Published16🌍 Public
This example displays a pie chart of the top 10 countries by air pollution deaths in 2020, with each slice colored and paired with a legend showing the country name and annual income in thousands. The chart uses D3 v5 to load CSV data from a GitHub gist, and employs the `d3.pie` and `d3.arc` functions to generate the SVG paths for the chart and legend items. Colors are assigned sequentially from a hardcoded array using `scaleOrdinal`, and legend values are formatted with `d3.format`.
AI-generated descriptionMIT Licensed