Skip to main content
100%

Gun ownership and death

✓ Published0🌍 Public
Aandrewwitherspoon
Last edited Mar 2, 2018
Created on Mar 2, 2018

This scatterplot displays the relationship between gun ownership and gun death rates across U.S. states, with each state labeled directly next to its data point. The visualization uses D3 v3 to load and parse a TSV file, apply linear scales to both axes, and render circles and text labels in an SVG. The code employs d3.tsv, d3.scale.linear, d3.extent, and d3.svg.axis to compute domains, draw axes, and encode the two quantitative variables, while a categorical color scale is applied but not visibly used for differentiation.

AI-generated description

This scatterplot is constructed from a TSV file storing the dimensions of sepals and petals of various iris flowers. The chart employs conventional margins and a number of D3 features:

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/3887118'>Scatterplot</a>

forked from <a href='http://bl.ocks.org/andrewwitherspoon/'>andrewwitherspoon</a>'s block: <a href='http://bl.ocks.org/andrewwitherspoon/9b2d5684aad0cd5c5e9d731a4865e0f3'>Scatterplot</a>

gpl-3.0 Licensed

Similar vizzes