Skip to main content
100%

Fork of Fork of Fork of Fork of ICE - 7 Pie Chart Maanas Katta

✓ Published0🌍 Public
Nnsatyaprakash22
Last edited Mar 13, 2023
Created on Mar 12, 2023

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
MIT Licensed

Similar vizzes