Viewing a saved revision (read-only)
17e2cd722dd84395a144b03e9077f469
A7 Small Multiples Line Chart
This small-multiple line chart displays marijuana usage rates per 1000 people for ages 18–25 across US states, using data from the CORGIS dataset. Each state’s trend line is rendered in its own SVG cell, colored via a d3.scaleOrdinal palette, with a d3-legend color threshold legend. The visualization uses d3.group to separate data by state, d3.line to create paths, and d3.axisBottom and d3.axisLeft for axes, with a title overlaid in HTML.
AI-generated descriptionVisualization of crime rates (per 100k people) by state from the CORGIS dataset made with D3. Color legend and threshold code from Susie Lu. Implementation from D3 Graph Gallery.
Hover over dots to see precise values. Fullscreen to see legend.