Skip to main content
100%

rao

✓ Published0🌍 Public
RRakshithaRao27
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from Pie Chart

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

Similar vizzes