Skip to main content
100%

Fork of Filtered Stacked Line Graph and Donut Graph of Deaths with Legend

✓ Published0🌍 Public
DDINESH SAI BOPPANA
Last edited Jun 23, 2022
Created on Jun 23, 2022

This interactive React visualization displays mortality data for suicide, firearm, and alcohol-related deaths across demographic categories using stacked area charts and a donut graph. The main chart shows temporal trends filtered by sex, ethnicity, and age group, while a pie chart breaks down proportional death types. Built with D3 v5, it employs d3.area() with curveNatural for smooth transitions, d3.pie() and d3.arc() for the donut, and scales like scaleLinear and scaleOrdinal. Hover interactions on the color legend fade non-selected categories, with data sourced from a Gist CSV file.

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