Fork of Fork of ICE - 7 Pie Chart Maanas Katta
✓ Published0🌍 Public
This example presents a pie chart of the top 10 countries with the highest air pollution-related deaths in 2020, using data from a CSV hosted in a GitHub gist. The visualization uses D3 v5 to parse the data with `d3.csv`, compute the pie layout with `d3.pie()`, and render SVG paths via `d3.arc()`. A `scaleOrdinal` maps categorical colors to each slice, while `d3.format` abbreviates death counts (e.g., "4.5K") for labels and a legend. The SVG is selected and manipulated directly within a React framework, with styling applied via CSS.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed