Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

rao

Public visualization

Viewing a saved revision (read-only)

3805aded6fa141fbbcc4faf37170c0f1

rao

0 stars0🌍 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