rao
✓ Published0🌍 Public
This pie chart displays mortality rates across United States, with each slice representing a state and its corresponding death count. Built with D3 v5, the visualization uses `d3.pie` and `d3.arc` to generate the slices, while `d3.scaleOrdinal` maps state names to a predefined color palette. Death data is loaded asynchronously from a CSV file via `d3.csv`, with values parsed as numbers. A legend, constructed with SVG groups and rectangles, lists each state’s name and its death count, formatted using `d3.format`.
AI-generated descriptionMIT Licensed