Fork of ICE - 7 Pie Chart Maanas Katta
✓ Published0🌍 Public
A pie chart visualizes the top 10 countries by vehicular deaths from air pollution in 2020, with each segment labeled in thousands and a legend listing states and their corresponding values. The chart is rendered as an SVG using D3 v5, loading CSV data from a GitHub gist. The code employs d3.pie and d3.arc to generate segments, d3.scaleOrdinal for color mapping, and d3.select for DOM manipulation, with text and legend elements added manually.
AI-generated descriptionMIT Licensed