A4 Scatterplot (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 descriptionVisualization 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.