Stacked Line: Deaths by Suicide, Firearm, Alcohol
This stacked bar visualization displays total deaths from suicide, firearms, and alcohol from 2003 to 2017, revealing an upward trend and consistently higher alcohol-related deaths than suicide, which exceed firearm deaths. It uses vega-lite-api with d3.csv to load data from a Gist-hosted GitHub raw file, rendering bars with encoded time, quantitative total, and nominal type fields. The visualization applies a custom color scheme and styled axes from a config object, with a React-based bundle and tooltip support via vega-tooltip.
AI-generated descriptionA visualization constructed using vega-lite-api that shows the number of male and female firearm deaths from 2003-2017.
The data shown here comes from Gist: Deaths by Suicide, Firearms, Alcohol. This visualization uses a simplified csv that is much larger in size. It should be refactored or removed.
Observations: We can see that the total number of deaths goes up over time. We can also see that there are consistently more deaths from alcohol than suicide, and suicide than firearms. More questions can be asked on the breakdown of these deaths.