Skip to main content
100%

Filtered Stacked Line Graph of Deaths with Legend

✓ Published2🌍 Public
PPeter Maida
Last edited Oct 20, 2020
Created on Oct 20, 2020

This interactive visualization displays the breakdown of firearm, suicide, and alcohol-related deaths over time for specific demographic groups. Users can filter by sex, ethnicity, and age group using dropdown menus, and hover over the legend to highlight individual death categories. The stacked area chart renders with React and D3 v5, using d3's `area()`, `curveNatural()`, and scale functions to generate smooth SVG paths. Data comes from a CSV hosted on GitHub Gist.

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