Skip to main content
100%

A7 Small Multiples Line Chart

✓ Published1🌍 Public
NNoah C.
Last edited Mar 8, 2024
Created on Mar 8, 2024

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 description

Visualization of marijuana usage rates of people 18-25 (per 1000 people) by state from the CORGIS dataset made with D3. Color legend and threshold code from Susie Lu. Implementation from D3 Graph Gallery. ChatGPT used for title/legend formatting.

Fullscreen to see legend.

MIT Licensed

Similar vizzes