Skip to main content
Public

Share visualization

Loading preview…

NICS Data - Bar Chart Interactive Legend

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

NICS Data - Bar Chart Interactive Legend

1
Rrpkupfer@wpi.edu
Last edited Oct 22, 2025
Created on Oct 22, 2025

This interactive bar chart visualizes firearm background check data across U.S. states, showing stacked totals by gun type (handgun, long gun, other, and multiple) for a selected year. Users can filter by year and choose to display the top 10, top 25, or all states. Hovering over bars reveals detailed category tooltips, while hovering over the legend highlights a specific gun type. Built with D3 v7 and d3-rosetta, it uses scaleBand and scaleLinear for axes, transitions to animate opacity changes, and CSV-loaded data aggregated per state.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed