Suicide Trend over Years and Gender in United States
This stacked bar chart visualizes suicide trends across years and gender in the United States, with each bar segmented by sex. Hovering over a bar reveals a tooltip with the exact value, while hovering over the legend highlights the corresponding gender’s segments. Built with D3.js, the visualization uses `d3.layout.stack` for stacking, `d3.scale.ordinal` for axes, and `d3-tip` for interactive tooltips. Data comes from the Suicide_in_USA_by_Sex.csv file, and the SVG rendering includes a semi-transparent overlay to dim non-highlighted bars.
AI-generated descriptionStacked bar chart showing Suicide Trend over Years and Gender in United States.
Interactions:
- Hover over the bars for tool tips.
- Hover over the legend to highlight religions.
Derived from the following examples published on Curran's VizHub:
Data Sources
Data: Suicide_in_USA_by_Sex.csv from Suicide Rates Overview