Skip to main content
100%

Line Chart

✓ Published1🌍 Public
AArun
Last edited Mar 28, 2024
Created on Mar 28, 2024

This line chart displays violent crime rates per 100,000 people for each U.S. state from 2000 to 2019, using data from the CORGIS dataset. Each state is represented by a colored line, with a color legend on the right for identification. Built with D3.js (v7), the visualization uses `d3.scaleLinear` for axes and `d3.scaleOrdinal` for color assignment, rendering paths and hover-able circles in SVG. The `d3.legendColor` API adds the threshold legend, and tooltips reveal exact values on hover.

AI-generated description

Visualization 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.

MIT Licensed

Similar vizzes