Skip to main content
100%

Stacked Line Graph of Deaths with Legend

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

A stacked area chart tracks Firearm, Suicide, and Alcohol-Related deaths over time for total U.S. demographics. Three layered paths render with `d3.area()` and `curveNatural`, each filled with distinct colors and paired with a hover-able `ColorLegend`. This interactive legend dims non-selected layers via opacity. Built with React and D3 v5 in SVG, the visualization uses `scaleLinear` for axes and reads data from a GitHub gist CSV, though filtering menus remain non-functional.

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