Skip to main content
100%

Filtered Stacked Line Graph and Donut Graph of Deaths with Legend

✓ Published4🌍 Public
PPeter Maida
Last edited Nov 8, 2020
Created on Oct 28, 2020

This interactive visualization shows death counts across multiple categories, comparing firearm, suicide, and alcohol-related deaths over time using a stacked area chart. The visualization includes dropdown menus for filtering by sex, ethnicity, age group, and death type, though the current version only fully implements the death type filter. A donut chart displays proportional breakdowns of the selected data. The visualization uses React with D3 v5, implementing custom SVG rendering with axes, color legends, and natural curve interpolation for the stacked areas.

AI-generated description

A visualization constructed using React that shows the number of various types of deaths by demographics.

The data shown here comes from Gist: Deaths by Suicide, Firearms, Alcohol.

Currently the Sex, Ethnicity, and Age Group menus don't filter. The current graph shows male points as blue and female points as red. The various points in each year are the different ethnicities. The age group currently isn't being used and all age groups are being showed.

MIT Licensed

Similar vizzes