Skip to main content
100%

Choropleth

✓ Published0🌍 Public
Aalex-rind
Last edited Nov 29, 2017
Created on Nov 29, 2017

This choropleth maps unemployment rates across U.S. counties as of August 2016, using a threshold color scale to bin rates into discrete categories. County boundaries are rendered as SVG paths from TopoJSON, with color encoding based on the unemployment rate. The data is sourced from the Bureau of Labor Statistics, transformed from a fixed-width text file into CSV using command-line tools, and visualized with D3 v4.

AI-generated description

Source: Bureau of Labor Statistics, Census Bureau

This choropleth shows unemployment rates as of August, 2016 with a threshold scale. I employed a mix of command-line tools to transform the fixed-width text file into a CSV, including dsv2dsv:

cat <(echo "id,rate") \
  <(tail -n +7 laucntycur14.txt \
    | grep 'Aug-16' \
    | cut -b 21-22,28-30,129-133 \
    | tr -s ' ' \
    | dsv2dsv -r ' ') \
  | csv2tsv \
  > unemployment.tsv

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

gpl-3.0 Licensed

Similar vizzes