Skip to main content
Public

Share visualization

Loading preview…

Suicide Trend over Years and Gender in United States

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Suicide Trend over Years and Gender in United States

3
CChen Ding
Last edited Oct 24, 2019
Created on Oct 10, 2019

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 description

Stacked 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

Comments

Sign in to join the discussion.

MIT Licensed