🌍 Public
Viewing a saved revision (read-only)
eab525a3c5b942399909b50737d48878
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