🌍 Public
Viewing a saved revision (read-only)
855a7b23d6c244b791839f1f7872eb74
Fork of Fork of Fork of Fork of ICE - 7 Pie Chart Maanas Katta
This visualization presents a pie chart ranking the top 10 Indian states by accident-related deaths. Each slice’s size encodes the death count, with section labels and a legend displaying both the state name and its corresponding value. The code loads CSV data from a GitHub Gist using `d3.csv`, then employs `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to generate the chart’s arcs and color mapping. The SVG canvas is populated with `path` elements for slices, `text` elements for labels, and a separate legend group, all driven by D3 v5.
AI-generated description