Viewing a saved revision (read-only)
c208fe2aa61e45349cba8a7a14f292eb
A5 Line Chart (D3)
This line chart visualizes total opioid overdose deaths in the United States from 1999 to 2019, using data from the CORGIS dataset. Red circles mark each year’s value, and hovering over a dot reveals the exact death count via a tooltip. The chart uses d3.csv to load the data, d3.scaleLinear for both axes, and d3.axisBottom and d3.axisLeft to render ticks. The line and dots are drawn as SVG elements using d3.line and appended circles, with a title appended to each circle for the hover effect.
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.