Legend
This interactive visualization explores death statistics by cause and demographic categories, displaying stacked area charts of suicide, firearm, and alcohol-related deaths over time. The interface includes dropdown menus for filtering by sex, ethnicity, age group, and specific death types, with a color legend that supports hovering to highlight or fade individual categories. Built with React and D3 v5, it uses d3.area, d3.curveNatural, and d3.scaleOrdinal to render SVG paths and pie charts. Data comes from a Gist CSV file, though several filtering options remain non-functional in the current version.
AI-generated descriptionA 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.