Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

A4 Barchart (D3)

Public visualization

Viewing a saved revision (read-only)

581963e70ada4a94b2c5efc9c6892e44

A4 Barchart (D3)

0 stars11🌍 Public
NNoah C.
Last edited Apr 9, 2024
Created on Feb 19, 2024

This bar chart visualizes total opioid deaths per year from 1999 to 2019, using data from the CORGIS dataset. The chart displays red bars for each year, with a hover tooltip (via SVG `title` elements) showing the exact death count. It uses D3 v7 with `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.axisBottom` and `d3.axisLeft` for axes. The SVG rendering is responsive to the window size, and the data is loaded asynchronously via `d3.csv`.

AI-generated description

Visualization of the State Crime Rate data from the CORGIS dataset made with p5js. Please fullscreen for proper axis display.