Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading Data - NICS Data

Public visualization

Viewing a saved revision (read-only)

59db318776fb4c1fae36f2e790600d65

Fork of Loading Data - NICS Data

0 stars2🌍 Public
Rrpkupfer@wpi.edu
Last edited Sep 3, 2025
Created on Sep 2, 2025
Forked from Loading Data

This example loads a CSV of FBI NICS firearm background check data using `d3.csvParse` after fetching the file with the Fetch API. It displays the parsed data as raw JSON in a `<pre>` element, converting the numeric columns—handgun, long_gun, other, and multiple—to numbers with the unary plus operator. The visualization tracks loading state through a `setState` callback, initially showing `"LOADING"` before the data appears. The code relies on D3 v7 methods including `select`, `csvParse`, and `join` to render the output.

AI-generated description