Skip to content

Instantly share code, notes, and snippets.

@pjsier
Last active August 4, 2017 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjsier/7c15c9ba785ef1f97508cafbd31ba836 to your computer and use it in GitHub Desktop.
Save pjsier/7c15c9ba785ef1f97508cafbd31ba836 to your computer and use it in GitHub Desktop.
Cook County Migration Sankey
license: mit
height: 650
border: no
FIPS state county movers
17043 Illinois DuPage County 20126
17197 Illinois Will County 11017
17097 Illinois Lake County 9802
18089 Indiana Lake County 8711
17089 Illinois Kane County 6775
17019 Illinois Champaign County 4494
06037 California Los Angeles County 3199
17111 Illinois McHenry County 2697
04013 Arizona Maricopa County 2654
17037 Illinois DeKalb County 2415
55079 Wisconsin Milwaukee County 2368
48201 Texas Harris County 2300
36061 New York New York County 2162
17113 Illinois McLean County 2093
27053 Minnesota Hennepin County 1963
55025 Wisconsin Dane County 1953
48113 Texas Dallas County 1558
18097 Indiana Marion County 1457
53033 Washington King County 1433
17077 Illinois Jackson County 1300
17201 Illinois Winnebago County 1271
32003 Nevada Clark County 1229
17109 Illinois McDonough County 1194
06085 California Santa Clara County 1168
17091 Illinois Kankakee County 1138
39049 Ohio Franklin County 1079
11001 District of Columbia District of Columbia 1029
06059 California Orange County 1026
06075 California San Francisco County 1002
08031 Colorado Denver County 991
17167 Illinois Sangamon County 977
26163 Michigan Wayne County 971
17107 Illinois Logan County 957
36047 New York Kings County 948
06073 California San Diego County 945
17161 Illinois Rock Island County 937
19103 Iowa Johnson County 935
12057 Florida Hillsborough County 931
47157 Tennessee Shelby County 906
12095 Florida Orange County 892
18141 Indiana St. Joseph County 868
29510 Missouri St. Louis city 862
55059 Wisconsin Kenosha County 848
18157 Indiana Tippecanoe County 844
48157 Texas Fort Bend County 835
17029 Illinois Coles County 826
27123 Minnesota Ramsey County 803
26081 Michigan Kent County 801
17143 Illinois Peoria County 796
26161 Michigan Washtenaw County 776
13121 Georgia Fulton County 768
13089 Georgia DeKalb County 760
26125 Michigan Oakland County 729
06071 California San Bernardino County 726
37119 North Carolina Mecklenburg County 723
12086 Florida Miami-Dade County 714
48453 Texas Travis County 709
18127 Indiana Porter County 703
13067 Georgia Cobb County 682
29189 Missouri St. Louis County 675
41051 Oregon Multnomah County 674
06001 California Alameda County 653
17105 Illinois Livingston County 653
48029 Texas Bexar County 636
25017 Massachusetts Middlesex County 613
39035 Ohio Cuyahoga County 611
12099 Florida Palm Beach County 608
18105 Indiana Monroe County 608
51059 Virginia Fairfax County 596
17115 Illinois Macon County 579
25025 Massachusetts Suffolk County 576
18057 Indiana Hamilton County 555
18091 Indiana LaPorte County 548
55127 Wisconsin Walworth County 548
48439 Texas Tarrant County 547
17101 Illinois Lawrence County 543
51087 Virginia Henrico County 533
24031 Maryland Montgomery County 527
42003 Pennsylvania Allegheny County 527
55073 Wisconsin Marathon County 526
26077 Michigan Kalamazoo County 518
12011 Florida Broward County 517
48027 Texas Bell County 491
47037 Tennessee Davidson County 489
55009 Wisconsin Brown County 478
09001 Connecticut Fairfield County 471
39113 Ohio Montgomery County 471
04019 Arizona Pima County 467
39061 Ohio Hamilton County 466
55101 Wisconsin Racine County 462
06065 California Riverside County 457
17095 Illinois Knox County 457
12071 Florida Lee County 451
42101 Pennsylvania Philadelphia County 451
19153 Iowa Polk County 450
08005 Colorado Arapahoe County 432
17099 Illinois LaSalle County 428
37183 North Carolina Wake County 414
26065 Michigan Ingham County 413
48215 Texas Hidalgo County 399
08013 Colorado Boulder County 389
19163 Iowa Scott County 389
12021 Florida Collier County 385
55131 Wisconsin Washington County 384
29019 Missouri Boone County 378
18039 Indiana Elkhart County 374
17119 Illinois Madison County 350
13135 Georgia Gwinnett County 349
13097 Georgia Douglas County 348
17051 Illinois Fayette County 342
12103 Florida Pinellas County 340
12115 Florida Sarasota County 337
34003 New Jersey Bergen County 335
17009 Illinois Brown County 332
17087 Illinois Johnson County 323
53061 Washington Snohomish County 320
09003 Connecticut Hartford County 318
01101 Alabama Montgomery County 317
48121 Texas Denton County 301
06013 California Contra Costa County 296
17183 Illinois Vermilion County 296
17163 Illinois St. Clair County 295
06067 California Sacramento County 292
22071 Louisiana Orleans Parish 285
55087 Wisconsin Outagamie County 283
48085 Texas Collin County 282
08059 Colorado Jefferson County 280
12101 Florida Pasco County 276
49049 Utah Utah County 275
18003 Indiana Allen County 271
21111 Kentucky Jefferson County 271
35009 New Mexico Curry County 271
19113 Iowa Linn County 267
12091 Florida Okaloosa County 262
09009 Connecticut New Haven County 259
06077 California San Joaquin County 257
17103 Illinois Lee County 253
55105 Wisconsin Rock County 253
29095 Missouri Jackson County 252
17057 Illinois Fulton County 251
24510 Maryland Baltimore city 251
17135 Illinois Montgomery County 249
17063 Illinois Grundy County 248
26139 Michigan Ottawa County 245
19169 Iowa Story County 242
55133 Wisconsin Waukesha County 240
17145 Illinois Perry County 235
48491 Texas Williamson County 235
06081 California San Mateo County 230
19061 Iowa Dubuque County 226
25015 Massachusetts Hampshire County 226
26021 Michigan Berrien County 226
53063 Washington Spokane County 225
08041 Colorado El Paso County 224
51810 Virginia Virginia Beach city 220
17027 Illinois Clinton County 219
27109 Minnesota Olmsted County 212
17033 Illinois Crawford County 211
51700 Virginia Newport News city 210
36055 New York Monroe County 209
37063 North Carolina Durham County 208
37081 North Carolina Guilford County 206
05007 Arkansas Benton County 204
17137 Illinois Morgan County 204
17007 Illinois Boone County 203
12031 Florida Duval County 201
45079 South Carolina Richland County 201
51013 Virginia Arlington County 200
24005 Maryland Baltimore County 193
37135 North Carolina Orange County 192
19067 Iowa Floyd County 189
01073 Alabama Jefferson County 188
13215 Georgia Muscogee County 188
36081 New York Queens County 188
20045 Kansas Douglas County 187
22115 Louisiana Vernon Parish 185
27009 Minnesota Benton County 185
34017 New Jersey Hudson County 184
53053 Washington Pierce County 184
05143 Arkansas Washington County 183
13313 Georgia Whitfield County 183
18163 Indiana Vanderburgh County 181
21067 Kentucky Fayette County 181
47187 Tennessee Williamson County 178
05119 Arkansas Pulaski County 176
47093 Tennessee Knox County 174
31055 Nebraska Douglas County 173
19057 Iowa Des Moines County 169
55117 Wisconsin Sheboygan County 169
24033 Maryland Prince George's County 168
48141 Texas El Paso County 165
06083 California Santa Barbara County 164
39017 Ohio Butler County 164
47017 Tennessee Carroll County 164
51003 Virginia Albemarle County 163
17157 Illinois Randolph County 162
40143 Oklahoma Tulsa County 162
06111 California Ventura County 161
20091 Kansas Johnson County 160
37051 North Carolina Cumberland County 160
18001 Indiana Adams County 159
44007 Rhode Island Providence County 156
36071 New York Orange County 155
12081 Florida Manatee County 153
02020 Alaska Anchorage Municipality 151
25027 Massachusetts Worcester County 151
12117 Florida Seminole County 147
22033 Louisiana East Baton Rouge Parish 147
18043 Indiana Floyd County 146
17075 Illinois Iroquois County 145
34023 New Jersey Middlesex County 145
36103 New York Suffolk County 145
37129 North Carolina New Hanover County 145
48339 Texas Montgomery County 145
45045 South Carolina Greenville County 144
17149 Illinois Pike County 142
17179 Illinois Tazewell County 141
06107 California Tulare County 140
13117 Georgia Forsyth County 139
39095 Ohio Lucas County 137
27037 Minnesota Dakota County 135
28075 Mississippi Lauderdale County 135
40109 Oklahoma Oklahoma County 134
42077 Pennsylvania Lehigh County 134
45019 South Carolina Charleston County 134
04021 Arizona Pinal County 133
53073 Washington Whatcom County 133
35049 New Mexico Santa Fe County 132
12127 Florida Volusia County 131
29169 Missouri Pulaski County 130
08069 Colorado Larimer County 129
36029 New York Erie County 126
39099 Ohio Mahoning County 126
25009 Massachusetts Essex County 125
37139 North Carolina Pasquotank County 125
72097 Puerto Rico Mayag��ez Municipio 125
01125 Alabama Tuscaloosa County 124
25021 Massachusetts Norfolk County 124
40031 Oklahoma Comanche County 124
31109 Nebraska Lancaster County 122
36005 New York Bronx County 122
36119 New York Westchester County 122
37001 North Carolina Alamance County 122
24003 Maryland Anne Arundel County 120
13245 Georgia Richmond County 119
48183 Texas Gregg County 119
26005 Michigan Allegan County 118
26027 Michigan Cass County 118
36109 New York Tompkins County 117
26103 Michigan Marquette County 116
37067 North Carolina Forsyth County 116
26055 Michigan Grand Traverse County 115
29183 Missouri St. Charles County 115
19087 Iowa Henry County 113
12069 Florida Lake County 112
28027 Mississippi Coahoma County 112
17001 Illinois Adams County 111
55139 Wisconsin Winnebago County 111
36027 New York Dutchess County 110
12001 Florida Alachua County 109
26049 Michigan Genesee County 109
39153 Ohio Summit County 109
26159 Michigan Van Buren County 108
27003 Minnesota Anoka County 108
39151 Ohio Stark County 108
27111 Minnesota Otter Tail County 107
27169 Minnesota Winona County 106
08035 Colorado Douglas County 105
12009 Florida Brevard County 105
49011 Utah Davis County 105
05069 Arkansas Jefferson County 104
23005 Maine Cumberland County 104
41067 Oregon Washington County 104
17093 Illinois Kendall County 101
18035 Indiana Delaware County 100
30049 Montana Lewis and Clark County 100
17203 Illinois Woodford County 99
28121 Mississippi Rankin County 99
39093 Ohio Lorain County 98
72131 Puerto Rico San Sebasti��n Municipio 98
17081 Illinois Jefferson County 97
29077 Missouri Greene County 96
34013 New Jersey Essex County 96
49035 Utah Salt Lake County 96
17021 Illinois Christian County 94
16065 Idaho Madison County 93
34027 New Jersey Morris County 93
35001 New Mexico Bernalillo County 93
51710 Virginia Norfolk city 91
36067 New York Onondaga County 90
55111 Wisconsin Sauk County 89
12015 Florida Charlotte County 88
19157 Iowa Poweshiek County 88
20209 Kansas Wyandotte County 86
06019 California Fresno County 85
18173 Indiana Warrick County 85
24027 Maryland Howard County 85
45091 South Carolina York County 85
15003 Hawaii Honolulu County 84
06061 California Placer County 83
12083 Florida Marion County 83
33015 New Hampshire Rockingham County 83
37105 North Carolina Lee County 83
27131 Minnesota Rice County 82
36111 New York Ulster County 82
72015 Puerto Rico Arroyo Municipio 82
25001 Massachusetts Barnstable County 81
38059 North Dakota Morton County 81
42017 Pennsylvania Bucks County 81
47143 Tennessee Rhea County 81
01089 Alabama Madison County 80
21049 Kentucky Clark County 80
26025 Michigan Calhoun County 80
34025 New Jersey Monmouth County 80
36065 New York Oneida County 80
12097 Florida Osceola County 79
39173 Ohio Wood County 79
48041 Texas Brazos County 79
12073 Florida Leon County 78
27145 Minnesota Stearns County 78
55055 Wisconsin Jefferson County 78
28087 Mississippi Lowndes County 77
33009 New Hampshire Grafton County 77
51510 Virginia Alexandria city 76
48245 Texas Jefferson County 75
08037 Colorado Eagle County 74
17199 Illinois Williamson County 73
26099 Michigan Macomb County 73
01047 Alabama Dallas County 72
22075 Louisiana Plaquemines Parish 72
55039 Wisconsin Fond du Lac County 72
12105 Florida Polk County 71
17049 Illinois Effingham County 71
17195 Illinois Whiteside County 71
39057 Ohio Greene County 71
50007 Vermont Chittenden County 71
51740 Virginia Portsmouth city 71
27137 Minnesota St. Louis County 70
01097 Alabama Mobile County 69
17141 Illinois Ogle County 69
18085 Indiana Kosciusko County 69
48353 Texas Nolan County 69
51069 Virginia Frederick County 69
06097 California Sonoma County 68
09011 Connecticut New London County 68
17011 Illinois Bureau County 68
18059 Indiana Hancock County 68
22035 Louisiana East Carroll Parish 68
45063 South Carolina Lexington County 68
12109 Florida St. Johns County 67
17085 Illinois Jo Daviess County 67
17151 Illinois Pope County 67
28127 Mississippi Simpson County 67
48209 Texas Hays County 67
26033 Michigan Chippewa County 66
08014 Colorado Broomfield County 65
20173 Kansas Sedgwick County 65
39085 Ohio Lake County 65
17133 Illinois Monroe County 64
21083 Kentucky Graves County 64
38015 North Dakota Burleigh County 64
04003 Arizona Cochise County 63
29029 Missouri Camden County 63
28105 Mississippi Oktibbeha County 62
42091 Pennsylvania Montgomery County 62
51650 Virginia Hampton city 62
55043 Wisconsin Grant County 62
12113 Florida Santa Rosa County 61
17155 Illinois Putnam County 61
05107 Arkansas Phillips County 60
17177 Illinois Stephenson County 60
28151 Mississippi Washington County 60
42045 Pennsylvania Delaware County 60
47111 Tennessee Macon County 60
55029 Wisconsin Door County 60
18053 Indiana Grant County 59
21151 Kentucky Madison County 59
37045 North Carolina Cleveland County 59
72025 Puerto Rico Caguas Municipio 59
10003 Delaware New Castle County 58
33011 New Hampshire Hillsborough County 58
37147 North Carolina Pitt County 58
48167 Texas Galveston County 58
26145 Michigan Saginaw County 57
55067 Wisconsin Langlade County 57
72031 Puerto Rico Carolina Municipio 57
18073 Indiana Jasper County 56
28033 Mississippi DeSoto County 56
34031 New Jersey Passaic County 56
37013 North Carolina Beaufort County 56
55001 Wisconsin Adams County 56
22103 Louisiana St. Tammany Parish 55
28049 Mississippi Hinds County 55
17165 Illinois Saline County 54
21073 Kentucky Franklin County 54
26089 Michigan Leelanau County 54
33013 New Hampshire Merrimack County 54
37089 North Carolina Henderson County 54
36059 New York Nassau County 53
39169 Ohio Wayne County 52
50015 Vermont Lamoille County 52
55057 Wisconsin Juneau County 52
56023 Wyoming Lincoln County 52
12111 Florida St. Lucie County 51
31153 Nebraska Sarpy County 51
42049 Pennsylvania Erie County 51
42125 Pennsylvania Washington County 51
06113 California Yolo County 50
17191 Illinois Wayne County 50
34041 New Jersey Warren County 50
55027 Wisconsin Dodge County 50
13179 Georgia Liberty County 49
37087 North Carolina Haywood County 49
06095 California Solano County 48
17073 Illinois Henry County 48
21117 Kentucky Kenton County 48
47155 Tennessee Sevier County 48
12017 Florida Citrus County 47
21225 Kentucky Union County 47
28093 Mississippi Marshall County 47
37101 North Carolina Johnston County 47
29165 Missouri Platte County 46
34015 New Jersey Gloucester County 46
36045 New York Jefferson County 46
45013 South Carolina Beaufort County 46
45043 South Carolina Georgetown County 46
51041 Virginia Chesterfield County 46
06017 California El Dorado County 45
16001 Idaho Ada County 45
17117 Illinois Macoupin County 45
34007 New Jersey Camden County 45
34021 New Jersey Mercer County 45
44003 Rhode Island Kent County 45
55089 Wisconsin Ozaukee County 45
39023 Ohio Clark County 44
04015 Arizona Mohave County 43
25003 Massachusetts Berkshire County 43
26107 Michigan Mecosta County 43
37025 North Carolina Cabarrus County 43
41039 Oregon Lane County 43
06053 California Monterey County 42
13153 Georgia Houston County 42
18167 Indiana Vigo County 42
26045 Michigan Eaton County 42
55063 Wisconsin La Crosse County 42
21227 Kentucky Warren County 41
37085 North Carolina Harnett County 41
41047 Oregon Marion County 41
47115 Tennessee Marion County 41
47117 Tennessee Marshall County 41
26037 Michigan Clinton County 40
26093 Michigan Livingston County 40
29001 Missouri Adair County 40
37191 North Carolina Wayne County 40
29101 Missouri Johnson County 39
37091 North Carolina Hertford County 39
39165 Ohio Warren County 39
47113 Tennessee Madison County 39
53035 Washington Kitsap County 39
55071 Wisconsin Manitowoc County 39
55103 Wisconsin Richland County 39
18099 Indiana Marshall County 38
18133 Indiana Putnam County 38
27049 Minnesota Goodhue County 38
28011 Mississippi Bolivar County 38
28059 Mississippi Jackson County 38
37071 North Carolina Gaston County 38
42039 Pennsylvania Crawford County 38
51540 Virginia Charlottesville city 38
05063 Arkansas Independence County 37
08067 Colorado La Plata County 37
20055 Kansas Finney County 37
28083 Mississippi Leflore County 37
29113 Missouri Lincoln County 37
32031 Nevada Washoe County 37
45015 South Carolina Berkeley County 37
48329 Texas Midland County 37
51179 Virginia Stafford County 37
72113 Puerto Rico Ponce Municipio 37
18107 Indiana Montgomery County 36
18177 Indiana Wayne County 36
20031 Kansas Coffey County 36
29047 Missouri Clay County 36
30093 Montana Silver Bow County 36
34039 New Jersey Union County 36
37037 North Carolina Chatham County 36
05135 Arkansas Sharp County 35
17083 Illinois Jersey County 35
17159 Illinois Richland County 35
36087 New York Rockland County 35
36101 New York Steuben County 35
39041 Ohio Delaware County 35
42119 Pennsylvania Union County 35
45011 South Carolina Barnwell County 35
50027 Vermont Windsor County 35
05073 Arkansas Lafayette County 34
08001 Colorado Adams County 34
12033 Florida Escambia County 34
17003 Illinois Alexander County 34
19127 Iowa Marshall County 34
26087 Michigan Lapeer County 34
30029 Montana Flathead County 34
51550 Virginia Chesapeake city 34
55035 Wisconsin Eau Claire County 34
05123 Arkansas St. Francis County 33
06007 California Butte County 33
28081 Mississippi Lee County 33
29015 Missouri Benton County 33
42027 Pennsylvania Centre County 33
51121 Virginia Montgomery County 33
01095 Alabama Marshall County 32
19167 Iowa Sioux County 32
22049 Louisiana Jackson Parish 32
37021 North Carolina Buncombe County 32
39083 Ohio Knox County 32
42043 Pennsylvania Dauphin County 32
51009 Virginia Amherst County 32
01077 Alabama Lauderdale County 31
04025 Arizona Yavapai County 31
05085 Arkansas Lonoke County 31
18095 Indiana Madison County 31
21209 Kentucky Scott County 31
26121 Michigan Muskegon County 31
47133 Tennessee Overton County 31
48397 Texas Rockwall County 31
13103 Georgia Effingham County 30
17181 Illinois Union County 30
19187 Iowa Webster County 30
45051 South Carolina Horry County 30
47079 Tennessee Henry County 30
51171 Virginia Shenandoah County 30
72075 Puerto Rico Juana D��az Municipio 30
08107 Colorado Routt County 29
19013 Iowa Black Hawk County 29
26057 Michigan Gratiot County 29
42029 Pennsylvania Chester County 29
42129 Pennsylvania Westmoreland County 29
47059 Tennessee Greene County 29
51830 Virginia Williamsburg city 29
01001 Alabama Autauga County 28
18011 Indiana Boone County 28
19099 Iowa Jasper County 28
20079 Kansas Harvey County 28
27013 Minnesota Blue Earth County 28
27113 Minnesota Pennington County 28
28071 Mississippi Lafayette County 28
48187 Texas Guadalupe County 28
51065 Virginia Fluvanna County 28
51760 Virginia Richmond city 28
13107 Georgia Emanuel County 27
20103 Kansas Leavenworth County 27
29021 Missouri Buchanan County 27
30061 Montana Mineral County 27
35043 New Mexico Sandoval County 27
37189 North Carolina Watauga County 27
39155 Ohio Trumbull County 27
47103 Tennessee Lincoln County 27
48485 Texas Wichita County 27
54061 West Virginia Monongalia County 27
55053 Wisconsin Jackson County 27
55077 Wisconsin Marquette County 27
72053 Puerto Rico Fajardo Municipio 27
72127 Puerto Rico San Juan Municipio 27
06087 California Santa Cruz County 26
17189 Illinois Washington County 26
18005 Indiana Bartholomew County 26
19101 Iowa Jefferson County 26
23031 Maine York County 26
29155 Missouri Pemiscot County 26
42007 Pennsylvania Beaver County 26
48361 Texas Orange County 26
05059 Arkansas Hot Spring County 25
17187 Illinois Warren County 25
19131 Iowa Mitchell County 25
26155 Michigan Shiawassee County 25
28047 Mississippi Harrison County 25
48231 Texas Hunt County 25
55021 Wisconsin Columbia County 25
55115 Wisconsin Shawano County 25
12085 Florida Martin County 24
15001 Hawaii Hawaii County 24
19155 Iowa Pottawattamie County 24
20061 Kansas Geary County 24
39043 Ohio Erie County 24
44009 Rhode Island Washington County 24
48465 Texas Val Verde County 24
55083 Wisconsin Oconto County 24
17015 Illinois Carroll County 23
17131 Illinois Mercer County 23
26147 Michigan St. Clair County 23
28021 Mississippi Claiborne County 23
28147 Mississippi Walthall County 23
37133 North Carolina Onslow County 23
39147 Ohio Seneca County 23
51153 Virginia Prince William County 23
53075 Washington Whitman County 23
13003 Georgia Atkinson County 22
13051 Georgia Chatham County 22
21047 Kentucky Christian County 22
24015 Maryland Cecil County 22
25023 Massachusetts Plymouth County 22
26149 Michigan St. Joseph County 22
28089 Mississippi Madison County 22
28115 Mississippi Pontotoc County 22
31159 Nebraska Seward County 22
39137 Ohio Putnam County 22
42123 Pennsylvania Warren County 22
47013 Tennessee Campbell County 22
50001 Vermont Addison County 22
72061 Puerto Rico Guaynabo Municipio 22
02110 Alaska Juneau City and Borough 21
08043 Colorado Fremont County 21
13031 Georgia Bulloch County 21
13157 Georgia Jackson County 21
18111 Indiana Newton County 21
22055 Louisiana Lafayette Parish 21
26023 Michigan Branch County 21
26075 Michigan Jackson County 21
39145 Ohio Scioto County 21
40145 Oklahoma Wagoner County 21
47021 Tennessee Cheatham County 21
53011 Washington Clark County 21
55045 Wisconsin Green County 21
55097 Wisconsin Portage County 21
72151 Puerto Rico Yabucoa Municipio 21
05015 Arkansas Carroll County 20
17173 Illinois Shelby County 20
18027 Indiana Daviess County 20
18067 Indiana Howard County 20
18113 Indiana Noble County 20
19181 Iowa Warren County 20
20161 Kansas Riley County 20
28095 Mississippi Monroe County 20
36083 New York Rensselaer County 20
37097 North Carolina Iredell County 20
47045 Tennessee Dyer County 20
05035 Arkansas Crittenden County 19
05115 Arkansas Pope County 19
06043 California Mariposa County 19
06055 California Napa County 19
06057 California Nevada County 19
09007 Connecticut Middlesex County 19
15009 Hawaii Maui County 19
17185 Illinois Wabash County 19
18149 Indiana Starke County 19
19125 Iowa Marion County 19
19151 Iowa Pocahontas County 19
20169 Kansas Saline County 19
21185 Kentucky Oldham County 19
26115 Michigan Monroe County 19
27163 Minnesota Washington County 19
30031 Montana Gallatin County 19
38101 North Dakota Ward County 19
40121 Oklahoma Pittsburg County 19
40135 Oklahoma Sequoyah County 19
48473 Texas Waller County 19
51630 Virginia Fredericksburg city 19
01087 Alabama Macon County 18
01103 Alabama Morgan County 18
08047 Colorado Gilpin County 18
13277 Georgia Tift County 18
38055 North Dakota McLean County 18
38105 North Dakota Williams County 18
39101 Ohio Marion County 18
45069 South Carolina Marlboro County 18
08123 Colorado Weld County 17
13039 Georgia Camden County 17
13127 Georgia Glynn County 17
17053 Illinois Ford County 17
25013 Massachusetts Hampden County 17
26123 Michigan Newaygo County 17
27007 Minnesota Beltrami County 17
27039 Minnesota Dodge County 17
28163 Mississippi Yazoo County 17
31019 Nebraska Buffalo County 17
46099 South Dakota Minnehaha County 17
47107 Tennessee McMinn County 17
47149 Tennessee Rutherford County 17
51107 Virginia Loudoun County 17
51770 Virginia Roanoke city 17
72143 Puerto Rico Vega Alta Municipio 17
02090 Alaska Fairbanks North Star Borough 16
13255 Georgia Spalding County 16
13285 Georgia Troup County 16
16013 Idaho Blaine County 16
17121 Illinois Marion County 16
19033 Iowa Cerro Gordo County 16
19083 Iowa Hardin County 16
19097 Iowa Jackson County 16
19193 Iowa Woodbury County 16
26105 Michigan Mason County 16
27015 Minnesota Brown County 16
29167 Missouri Polk County 16
37049 North Carolina Craven County 16
37125 North Carolina Moore County 16
42041 Pennsylvania Cumberland County 16
42071 Pennsylvania Lancaster County 16
47065 Tennessee Hamilton County 16
47165 Tennessee Sumner County 16
48139 Texas Ellis County 16
50025 Vermont Windham County 16
55113 Wisconsin Sawyer County 16
55125 Wisconsin Vilas County 16
09013 Connecticut Tolland County 15
12089 Florida Nassau County 15
26053 Michigan Gogebic County 15
35015 New Mexico Eddy County 15
35025 New Mexico Lea County 15
37057 North Carolina Davidson County 15
38017 North Dakota Cass County 15
39009 Ohio Athens County 15
46011 South Dakota Brookings County 15
47029 Tennessee Cocke County 15
47189 Tennessee Wilson County 15
48095 Texas Concho County 15
48161 Texas Freestone County 15
48181 Texas Grayson County 15
48347 Texas Nacogdoches County 15
51019 Virginia Bedford County 15
54011 West Virginia Cabell County 15
55061 Wisconsin Kewaunee County 15
56001 Wyoming Albany County 15
72135 Puerto Rico Toa Alta Municipio 15
13113 Georgia Fayette County 14
13139 Georgia Hall County 14
13223 Georgia Paulding County 14
19049 Iowa Dallas County 14
19055 Iowa Delaware County 14
21029 Kentucky Bullitt County 14
26137 Michigan Otsego County 14
28051 Mississippi Holmes County 14
29119 Missouri McDonald County 14
36011 New York Cayuga County 14
42019 Pennsylvania Butler County 14
42093 Pennsylvania Montour County 14
48099 Texas Coryell County 14
48265 Texas Kerr County 14
54001 West Virginia Barbour County 14
54081 West Virginia Raleigh County 14
55005 Wisconsin Barron County 14
55075 Wisconsin Marinette County 14
72149 Puerto Rico Villalba Municipio 14
05149 Arkansas Yell County 13
06025 California Imperial County 13
08077 Colorado Mesa County 13
13063 Georgia Clayton County 13
13077 Georgia Coweta County 13
17153 Illinois Pulaski County 13
27157 Minnesota Wabasha County 13
29083 Missouri Henry County 13
48053 Texas Burnet County 13
49013 Utah Duchesne County 13
51145 Virginia Powhatan County 13
51660 Virginia Harrisonburg city 13
55135 Wisconsin Waupaca County 13
55137 Wisconsin Waushara County 13
72039 Puerto Rico Ciales Municipio 13
72119 Puerto Rico R��o Grande Municipio 13
01035 Alabama Conecuh County 12
18069 Indiana Huntington County 12
20177 Kansas Shawnee County 12
21015 Kentucky Boone County 12
21147 Kentucky McCreary County 12
23015 Maine Lincoln County 12
26165 Michigan Wexford County 12
27071 Minnesota Koochiching County 12
27125 Minnesota Red Lake County 12
27147 Minnesota Steele County 12
28119 Mississippi Quitman County 12
29213 Missouri Taney County 12
30013 Montana Cascade County 12
31145 Nebraska Red Willow County 12
35013 New Mexico Do��a Ana County 12
36007 New York Broome County 12
39025 Ohio Clermont County 12
41003 Oregon Benton County 12
48355 Texas Nueces County 12
48423 Texas Smith County 12
48499 Texas Wood County 12
49005 Utah Cache County 12
51161 Virginia Roanoke County 12
06041 California Marin County 11
12119 Florida Sumter County 11
17045 Illinois Edgar County 11
17069 Illinois Hardin County 11
18137 Indiana Ripley County 11
19045 Iowa Clinton County 11
19115 Iowa Louisa County 11
26029 Michigan Charlevoix County 11
27035 Minnesota Crow Wing County 11
27085 Minnesota McLeod County 11
29017 Missouri Bollinger County 11
29173 Missouri Ralls County 11
32023 Nevada Nye County 11
36001 New York Albany County 11
36069 New York Ontario County 11
36079 New York Putnam County 11
37159 North Carolina Rowan County 11
39003 Ohio Allen County 11
39123 Ohio Ottawa County 11
41005 Oregon Clackamas County 11
41007 Oregon Clatsop County 11
45073 South Carolina Oconee County 11
46043 South Dakota Douglas County 11
51800 Virginia Suffolk city 11
53021 Washington Franklin County 11
04027 Arizona Yuma County 10
05019 Arkansas Clark County 10
13217 Georgia Newton County 10
17039 Illinois De Witt County 10
17193 Illinois White County 10
18065 Indiana Henry County 10
18169 Indiana Wabash County 10
19063 Iowa Emmet County 10
19179 Iowa Wapello County 10
21017 Kentucky Bourbon County 10
26131 Michigan Ontonagon County 10
27159 Minnesota Wadena County 10
29043 Missouri Christian County 10
30057 Montana Madison County 10
36089 New York St. Lawrence County 10
47005 Tennessee Benton County 10
47071 Tennessee Hardin County 10
47147 Tennessee Robertson County 10
48061 Texas Cameron County 10
54039 West Virginia Kanawha County 10
04009 Arizona Graham County 9
08049 Colorado Grand County 9
12053 Florida Hernando County 9
13053 Georgia Chattahoochee County 9
21095 Kentucky Harlan County 9
22117 Louisiana Washington Parish 9
23013 Maine Knox County 9
27043 Minnesota Faribault County 9
29135 Missouri Moniteau County 9
34009 New Jersey Cape May County 9
36003 New York Allegany County 9
36085 New York Richmond County 9
46023 South Dakota Charles Mix County 9
47125 Tennessee Montgomery County 9
48309 Texas McLennan County 9
49021 Utah Iron County 9
55069 Wisconsin Lincoln County 9
05111 Arkansas Poinsett County 8
08003 Colorado Alamosa County 8
08051 Colorado Gunnison County 8
10001 Delaware Kent County 8
13055 Georgia Chattooga County 8
13119 Georgia Franklin County 8
13137 Georgia Habersham County 8
18109 Indiana Morgan County 8
18151 Indiana Steuben County 8
19029 Iowa Cass County 8
19111 Iowa Lee County 8
19183 Iowa Washington County 8
21035 Kentucky Calloway County 8
21059 Kentucky Daviess County 8
25005 Massachusetts Bristol County 8
26061 Michigan Houghton County 8
26101 Michigan Manistee County 8
26133 Michigan Osceola County 8
28041 Mississippi Greene County 8
39089 Ohio Licking County 8
39133 Ohio Portage County 8
39139 Ohio Richland County 8
40039 Oklahoma Custer County 8
40133 Oklahoma Seminole County 8
44005 Rhode Island Newport County 8
46103 South Dakota Pennington County 8
48253 Texas Jones County 8
48335 Texas Mitchell County 8
48409 Texas San Patricio County 8
53067 Washington Thurston County 8
54089 West Virginia Summers County 8
55007 Wisconsin Bayfield County 8
55121 Wisconsin Trempealeau County 8
05039 Arkansas Dallas County 7
05077 Arkansas Lee County 7
06029 California Kern County 7
08117 Colorado Summit County 7
13211 Georgia Morgan County 7
17005 Illinois Bond County 7
18103 Indiana Miami County 7
18129 Indiana Posey County 7
18155 Indiana Switzerland County 7
19041 Iowa Clay County 7
21113 Kentucky Jessamine County 7
22051 Louisiana Jefferson Parish 7
26009 Michigan Antrim County 7
27047 Minnesota Freeborn County 7
27055 Minnesota Houston County 7
28077 Mississippi Lawrence County 7
30063 Montana Missoula County 7
33005 New Hampshire Cheshire County 7
36043 New York Herkimer County 7
39097 Ohio Madison County 7
39157 Ohio Tuscarawas County 7
41045 Oregon Malheur County 7
45083 South Carolina Spartanburg County 7
50017 Vermont Orange County 7
53031 Washington Jefferson County 7
55003 Wisconsin Ashland County 7
55081 Wisconsin Monroe County 7
05067 Arkansas Jackson County 6
13057 Georgia Cherokee County 6
18117 Indiana Orange County 6
19197 Iowa Wright County 6
21071 Kentucky Floyd County 6
24021 Maryland Frederick County 6
26007 Michigan Alpena County 6
26059 Michigan Hillsdale County 6
26127 Michigan Oceana County 6
27133 Minnesota Rock County 6
29097 Missouri Jasper County 6
29111 Missouri Lewis County 6
30041 Montana Hill County 6
37195 North Carolina Wilson County 6
41071 Oregon Yamhill County 6
45085 South Carolina Sumter County 6
55023 Wisconsin Crawford County 6
72019 Puerto Rico Barranquitas Municipio 6
72021 Puerto Rico Bayam��n Municipio 6
01017 Alabama Chambers County 5
01127 Alabama Walker County 5
02070 Alaska Dillingham Census Area 5
05031 Arkansas Craighead County 5
05131 Arkansas Sebastian County 5
06031 California Kings County 5
13109 Georgia Evans County 5
17055 Illinois Franklin County 5
17061 Illinois Greene County 5
17123 Illinois Marshall County 5
17147 Illinois Piatt County 5
19017 Iowa Bremer County 5
19019 Iowa Buchanan County 5
19095 Iowa Iowa County 5
20015 Kansas Butler County 5
20057 Kansas Ford County 5
21079 Kentucky Garrard County 5
21205 Kentucky Rowan County 5
21233 Kentucky Webster County 5
24043 Maryland Washington County 5
26073 Michigan Isabella County 5
26129 Michigan Ogemaw County 5
27081 Minnesota Lincoln County 5
27139 Minnesota Scott County 5
28069 Mississippi Kemper County 5
29039 Missouri Cedar County 5
34029 New Jersey Ocean County 5
35035 New Mexico Otero County 5
36053 New York Madison County 5
37179 North Carolina Union County 5
38035 North Dakota Grand Forks County 5
38081 North Dakota Sargent County 5
39005 Ohio Ashland County 5
39167 Ohio Washington County 5
46027 South Dakota Clay County 5
48381 Texas Randall County 5
48479 Texas Webb County 5
55095 Wisconsin Polk County 5
55123 Wisconsin Vernon County 5
55129 Wisconsin Washburn County 5
01105 Alabama Perry County 4
02130 Alaska Ketchikan Gateway Borough 4
06045 California Mendocino County 4
08121 Colorado Washington County 4
13115 Georgia Floyd County 4
13185 Georgia Lowndes County 4
18083 Indiana Knox County 4
19021 Iowa Buena Vista County 4
19037 Iowa Chickasaw County 4
19065 Iowa Fayette County 4
20005 Kansas Atchison County 4
21173 Kentucky Montgomery County 4
22009 Louisiana Avoyelles Parish 4
22017 Louisiana Caddo Parish 4
22079 Louisiana Rapides Parish 4
26041 Michigan Delta County 4
26151 Michigan Sanilac County 4
28025 Mississippi Clay County 4
28141 Mississippi Tishomingo County 4
29071 Missouri Franklin County 4
29133 Missouri Mississippi County 4
29215 Missouri Texas County 4
29217 Missouri Vernon County 4
36051 New York Livingston County 4
36099 New York Seneca County 4
39149 Ohio Shelby County 4
40131 Oklahoma Rogers County 4
42061 Pennsylvania Huntingdon County 4
47011 Tennessee Bradley County 4
47077 Tennessee Henderson County 4
48283 Texas La Salle County 4
48441 Texas Taylor County 4
51149 Virginia Prince George County 4
01081 Alabama Lee County 3
05145 Arkansas White County 3
08097 Colorado Pitkin County 3
13143 Georgia Haralson County 3
17129 Illinois Menard County 3
17175 Illinois Stark County 3
18063 Indiana Hendricks County 3
18081 Indiana Johnson County 3
19077 Iowa Guthrie County 3
19105 Iowa Jones County 3
19117 Iowa Lucas County 3
19189 Iowa Winnebago County 3
26019 Michigan Benzie County 3
26071 Michigan Iron County 3
26079 Michigan Kalkaska County 3
28035 Mississippi Forrest County 3
28067 Mississippi Jones County 3
28113 Mississippi Pike County 3
29037 Missouri Cass County 3
29185 Missouri St. Clair County 3
29207 Missouri Stoddard County 3
31025 Nebraska Cass County 3
36009 New York Cattaraugus County 3
37075 North Carolina Graham County 3
39141 Ohio Ross County 3
42095 Pennsylvania Northampton County 3
42133 Pennsylvania York County 3
47047 Tennessee Fayette County 3
47057 Tennessee Grainger County 3
48203 Texas Harrison County 3
49003 Utah Box Elder County 3
53027 Washington Grays Harbor County 3
55017 Wisconsin Chippewa County 3
55019 Wisconsin Clark County 3
55031 Wisconsin Douglas County 3
55049 Wisconsin Iowa County 3
55141 Wisconsin Wood County 3
72011 Puerto Rico A��asco Municipio 3
72137 Puerto Rico Toa Baja Municipio 3
01065 Alabama Hale County 2
05083 Arkansas Logan County 2
08075 Colorado Logan County 2
08085 Colorado Montrose County 2
13163 Georgia Jefferson County 2
18017 Indiana Cass County 2
18019 Indiana Clark County 2
19069 Iowa Franklin County 2
19175 Iowa Union County 2
20113 Kansas McPherson County 2
21193 Kentucky Perry County 2
21221 Kentucky Trigg County 2
26157 Michigan Tuscola County 2
27001 Minnesota Aitkin County 2
27061 Minnesota Itasca County 2
28085 Mississippi Lincoln County 2
28135 Mississippi Tallahatchie County 2
29027 Missouri Callaway County 2
29107 Missouri Lafayette County 2
30111 Montana Yellowstone County 2
31079 Nebraska Hall County 2
31141 Nebraska Platte County 2
35037 New Mexico Quay County 2
38049 North Dakota McHenry County 2
39081 Ohio Jefferson County 2
40041 Oklahoma Delaware County 2
41011 Oregon Coos County 2
42097 Pennsylvania Northumberland County 2
46123 South Dakota Tripp County 2
47035 Tennessee Cumberland County 2
47141 Tennessee Putnam County 2
48039 Texas Brazoria County 2
51103 Virginia Lancaster County 2
53019 Washington Ferry County 2
53039 Washington Klickitat County 2
53043 Washington Lincoln County 2
53057 Washington Skagit County 2
55099 Wisconsin Price County 2
55107 Wisconsin Rusk County 2
55109 Wisconsin St. Croix County 2
56021 Wyoming Laramie County 2
72041 Puerto Rico Cidra Municipio 2
02013 Alaska Aleutians East Borough 1
02150 Alaska Kodiak Island Borough 1
02270 Alaska Wade Hampton Census Area 1
06093 California Siskiyou County 1
08045 Colorado Garfield County 1
12055 Florida Highlands County 1
13059 Georgia Clarke County 1
13291 Georgia Union County 1
15007 Hawaii Kauai County 1
16005 Idaho Bannock County 1
16083 Idaho Twin Falls County 1
17025 Illinois Clay County 1
17035 Illinois Cumberland County 1
17071 Illinois Henderson County 1
17079 Illinois Jasper County 1
17169 Illinois Schuyler County 1
18031 Indiana Decatur County 1
18145 Indiana Shelby County 1
19043 Iowa Clayton County 1
19149 Iowa Plymouth County 1
19177 Iowa Van Buren County 1
20053 Kansas Ellsworth County 1
21093 Kentucky Hardin County 1
21141 Kentucky Logan County 1
23007 Maine Franklin County 1
24017 Maryland Charles County 1
26083 Michigan Keweenaw County 1
26117 Michigan Montcalm County 1
28139 Mississippi Tippah County 1
28155 Mississippi Webster County 1
29031 Missouri Cape Girardeau County 1
29131 Missouri Miller County 1
31059 Nebraska Fillmore County 1
31139 Nebraska Pierce County 1
31161 Nebraska Sheridan County 1
37083 North Carolina Halifax County 1
38045 North Dakota LaMoure County 1
38089 North Dakota Stark County 1
39001 Ohio Adams County 1
39007 Ohio Ashtabula County 1
39027 Ohio Clinton County 1
41057 Oregon Tillamook County 1
42001 Pennsylvania Adams County 1
45057 South Carolina Lancaster County 1
47007 Tennessee Bledsoe County 1
47041 Tennessee DeKalb County 1
47163 Tennessee Sullivan County 1
47179 Tennessee Washington County 1
48131 Texas Duval County 1
48171 Texas Gillespie County 1
48257 Texas Kaufman County 1
51191 Virginia Washington County 1
55041 Wisconsin Forest County 1
55078 Wisconsin Menominee County 1
56005 Wyoming Campbell County 1
<!DOCTYPE html>
<style>
body {
font-family: Verdana, sans-serif;
font-size: 12px;
}
path.county {
fill: #bdbdbd;
}
path.link {
fill: none;
}
path.link:hover {
stroke-opacity: 1;
}
.county-borders {
fill: none;
stroke: #fff;
stroke-width: 0.5px;
stroke-linejoin: round;
stroke-linecap: round;
pointer-events: none;
}
</style>
<svg width="960" height="600"></svg>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
<script src="https://d3js.org/topojson.v2.min.js"></script>
<script src="https://d3js.org/d3-queue.v3.min.js"></script>
<script>
// Add queue with defer, join csv with migration numbers to topojson FIPS (id attr on topo)
var svg = d3.select("svg");
var path = d3.geoPath();
function ready(error, us, migration) {
if (error) throw error;
// Pulled from https://bl.ocks.org/mbostock/4122298
migration.forEach(function(d) { d.movers = +d.movers; });
var color = d3.scaleQuantize()
.domain([0, d3.max(migration, function(d) { return d.movers; })])
.range(d3.schemeBuPu[6]);
// Joining to migration fips if available, otherwise 0
us.objects.counties.geometries.forEach(function(d) {
var match = migration.filter(function(m) { return m.FIPS === d.id; });
d.properties = {movers: 0};
if (match.length) d.properties = match[0];
});
var cookCentroid = path.centroid(
topojson.feature(us, us.objects.counties.geometries.filter(
function(d) { return d.id === "17031"; }
)[0])
);
// https://github.com/d3/d3-shape/issues/27
function link(d) {
c = path.centroid(d);
return "M" + c[0] + "," + c[1]
+ "C" + (c[0] + cookCentroid[0]) / 2 + "," + c[1]
+ " " + (c[0] + cookCentroid[0]) / 2 + "," + cookCentroid[1]
+ " " + cookCentroid[0] + "," + cookCentroid[1];
}
var line = d3.line()
.curve(d3.curveBasis)
.x(function(d) { return d[0]; })
.y(function(d) { return d[1]; });
var features = topojson.feature(us, us.objects.counties).features;
var g = svg.append("g").attr("class", "counties");
var strokeScale = d3.scaleLinear()
.range([0, 50])
.domain(d3.extent(features, function(d) { return d.properties.movers; }));
g.selectAll("path.county")
.data(features).enter()
.append("path")
.attr("d", path)
.attr("class", "county");
g.append("path")
.attr("class", "county-borders")
.attr("d", path(topojson.mesh(us, us.objects.counties, function(a, b) { return a !== b; })));
var legend = g.append("g")
.attr("class", "legend")
.attr("transform", "translate(700,500)");
legend.append("rect")
.attr("width", 225)
.attr("height", 100)
.attr("fill", "#9ecae1")
.style("opacity", 0.5);
legend.append("text")
.attr("x", 10)
.attr("y", 20)
.attr("font-weight", "bold")
.text("Cook County Migration");
legend.append("text")
.attr("x", 10)
.attr("y", 50)
.attr("id", "legendCounty")
.text("Hover over a link");
legend.append("text")
.attr("x", 10)
.attr("y", 70)
.attr("id", "legendCount")
.text("");
legend.append("text")
.attr("x", 10)
.attr("y", 85)
.attr("id", "cook")
.text("");
var linkFeatures = features.filter(function(d) { return d.properties.movers > 1000; });
g.selectAll("path.link")
.data(linkFeatures)
.enter().append("path")
.attr("d", link)
.attr("class", "link")
.attr("stroke", function(d) { return color(d.properties.movers); })
.attr("stroke-width", function(d) { return strokeScale(d.properties.movers); })
.attr("stroke-opacity", 0.6)
.on("mouseover", function(d) {
d3.select("#legendCounty").text(d.properties.county + ", " + d.properties.state);
d3.select("#legendCount").text(d3.format(",")(d.properties.movers) + " moved from");
d3.select("#cook").text("Cook County");
})
.on("mouseout", function(d) {
d3.select("#legendCounty").text("Hover over a link");
d3.select("#legendCount").text("");
d3.select("#cook").text("");
});
}
(function() {
d3.queue()
.defer(d3.json, "https://d3js.org/us-10m.v1.json")
.defer(d3.csv, "cook_county_out_migration.csv")
.await(ready)
})()
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment