Skip to main content
100%

A4 Scatterplot (D3)

✓ Published3🌍 Public
NNoah C.
Last edited Feb 21, 2024
Created on Feb 20, 2024
Forked from A4 Barchart (D3)

This scatterplot visualizes the relationship between reported alcohol and tobacco use among individuals aged 26 and older, using data from the CORGIS dataset. Each red dot represents a state or region, plotting total monthly tobacco use on the x-axis against alcohol use on the y-axis, with values displayed in thousands. Hovering over a dot reveals a tooltip with the exact figures via SVG `<title>` elements. The visualization is built with D3 v7, using `d3.csv` for data loading, `d3.scaleLinear` for axes, and `d3.axisBottom` and `d3.axisLeft` for rendering ticks.

AI-generated description

Visualization of alcohol usage vs tobacco usage from the CORGIS dataset made with D3. Implementation learned from DataVizDad on Youtube as well as the D3 Graph Gallery.

Hover over dots to see value for that point.

MIT Licensed

Similar vizzes