- Download data from https://electionlab.mit.edu/data
- Run combine.py to separate out data by year
- Run ogr2ogr command to combine csv with geo data:
- ogr2ogr -sql "select inshape., . from inshape left join '.csv'. on on inshape.GEOID = .FIPS" shape_join.shp inshape.shp
- Create geojson file from shapefile
- ogr2ogr -f GeoJSON .json shape_join.shp
- Opt: create topojson file
- topojson .json -o .json -p