Skip to content

Instantly share code, notes, and snippets.

@matt-bernhardt matt-bernhardt/README.md forked from mbostock/.block
Last active Aug 29, 2015

Embed
What would you like to do?
Choropleth map example

This choropleth encodes employed populations from recent census data.

id county employed
1003 Baldwin County, Alabama 85191
1015 Calhoun County, Alabama 43982
1043 Cullman County, Alabama 32358
1049 DeKalb County, Alabama N
1051 Elmore County, Alabama N
1055 Etowah County, Alabama 39960
1069 Houston County, Alabama 44263
1073 Jefferson County, Alabama 293883
1077 Lauderdale County, Alabama 40856
1081 Lee County, Alabama 69899
1083 Limestone County, Alabama 38865
1089 Madison County, Alabama 164082
1095 Marshall County, Alabama 38530
1097 Mobile County, Alabama 168057
1101 Montgomery County, Alabama 99500
1103 Morgan County, Alabama 49938
1115 St. Clair County, Alabama N
1117 Shelby County, Alabama 99036
1121 Talladega County, Alabama N
1125 Tuscaloosa County, Alabama 87856
1127 Walker County, Alabama N
2020 Anchorage Municipality, Alaska 153271
2090 Fairbanks North Star Borough, Alaska N
2170 Matanuska-Susitna Borough, Alaska 40572
4001 Apache County, Arizona N
4003 Cochise County, Arizona 44066
4005 Coconino County, Arizona 64735
4013 Maricopa County, Arizona 1790416
4015 Mohave County, Arizona 66666
4017 Navajo County, Arizona 32938
4019 Pima County, Arizona 421925
4021 Pinal County, Arizona 137762
4025 Yavapai County, Arizona 84363
4027 Yuma County, Arizona 72884
5007 Benton County, Arkansas 109636
5031 Craighead County, Arkansas 44648
5045 Faulkner County, Arkansas 58480
5051 Garland County, Arkansas N
5069 Jefferson County, Arkansas N
5085 Lonoke County, Arkansas 32684
5119 Pulaski County, Arkansas 179894
5125 Saline County, Arkansas 54544
5131 Sebastian County, Arkansas 52689
5143 Washington County, Arkansas 102055
5145 White County, Arkansas N
6001 Alameda County, California 766651
6007 Butte County, California 91352
6013 Contra Costa County, California 510386
6017 El Dorado County, California 75746
6019 Fresno County, California 371604
6023 Humboldt County, California 56650
6025 Imperial County, California 59931
6029 Kern County, California 323328
6031 Kings County, California 52551
6033 Lake County, California N
6037 Los Angeles County, California 4614694
6039 Madera County, California 51909
6041 Marin County, California 127491
6045 Mendocino County, California N
6047 Merced County, California 90765
6053 Monterey County, California 172574
6055 Napa County, California 69758
6057 Nevada County, California N
6059 Orange County, California 1509266
6061 Placer County, California 166031
6065 Riverside County, California 918967
6067 Sacramento County, California 618670
6071 San Bernardino County, California 824290
6073 San Diego County, California 1431442
6075 San Francisco County, California 479337
6077 San Joaquin County, California 277997
6079 San Luis Obispo County, California 128815
6081 San Mateo County, California 388287
6083 Santa Barbara County, California 206144
6085 Santa Clara County, California 910145
6087 Santa Cruz County, California 129221
6089 Shasta County, California 66686
6095 Solano County, California 183698
6097 Sonoma County, California 238568
6099 Stanislaus County, California 210456
6101 Sutter County, California 37336
6107 Tulare County, California 165958
6111 Ventura County, California 403569
6113 Yolo County, California 90791
6115 Yuba County, California N
8001 Adams County, Colorado 228137
8005 Arapahoe County, Colorado 306762
8013 Boulder County, Colorado 167744
8031 Denver County, Colorado 347626
8035 Douglas County, Colorado 152875
8041 El Paso County, Colorado 288159
8059 Jefferson County, Colorado 289383
8069 Larimer County, Colorado 163279
8077 Mesa County, Colorado 67000
8101 Pueblo County, Colorado 63453
8123 Weld County, Colorado 126735
9001 Fairfield County, Connecticut 463442
9003 Hartford County, Connecticut 434665
9005 Litchfield County, Connecticut 99698
9007 Middlesex County, Connecticut 84489
9009 New Haven County, Connecticut 415518
9011 New London County, Connecticut 136491
9013 Tolland County, Connecticut 79927
9015 Windham County, Connecticut 56911
10001 Kent County, Delaware 76286
10003 New Castle County, Delaware 268294
10005 Sussex County, Delaware 85667
11001 District of Columbia, District of Columbia 333111
12001 Alachua County, Florida 114725
12005 Bay County, Florida 77773
12009 Brevard County, Florida 227309
12011 Broward County, Florida 872375
12015 Charlotte County, Florida 53051
12017 Citrus County, Florida N
12019 Clay County, Florida 88686
12021 Collier County, Florida 138998
12023 Columbia County, Florida N
12031 Duval County, Florida 405956
12033 Escambia County, Florida 127772
12035 Flagler County, Florida N
12053 Hernando County, Florida 58881
12055 Highlands County, Florida N
12057 Hillsborough County, Florida 605786
12061 Indian River County, Florida 54927
12069 Lake County, Florida 121106
12071 Lee County, Florida 263579
12073 Leon County, Florida 139614
12081 Manatee County, Florida 137285
12083 Marion County, Florida 116277
12085 Martin County, Florida 60518
12086 Miami-Dade County, Florida 1190891
12087 Monroe County, Florida N
12089 Nassau County, Florida N
12091 Okaloosa County, Florida 82621
12095 Orange County, Florida 600669
12097 Osceola County, Florida 127620
12099 Palm Beach County, Florida 619346
12101 Pasco County, Florida 189682
12103 Pinellas County, Florida 423157
12105 Polk County, Florida 246894
12107 Putnam County, Florida N
12109 St. Johns County, Florida 91623
12111 St. Lucie County, Florida 112375
12113 Santa Rosa County, Florida 64485
12115 Sarasota County, Florida 148405
12117 Seminole County, Florida 211377
12119 Sumter County, Florida N
12127 Volusia County, Florida 197360
13013 Barrow County, Georgia 31967
13015 Bartow County, Georgia N
13021 Bibb County, Georgia 56706
13031 Bulloch County, Georgia N
13045 Carroll County, Georgia 45653
13047 Catoosa County, Georgia N
13051 Chatham County, Georgia 122116
13057 Cherokee County, Georgia 103938
13059 Clarke County, Georgia 55459
13063 Clayton County, Georgia 111869
13067 Cobb County, Georgia 365602
13073 Columbia County, Georgia 59194
13077 Coweta County, Georgia 61677
13089 DeKalb County, Georgia 343776
13095 Dougherty County, Georgia N
13097 Douglas County, Georgia 63538
13113 Fayette County, Georgia 48703
13115 Floyd County, Georgia N
13117 Forsyth County, Georgia 92106
13121 Fulton County, Georgia 465447
13127 Glynn County, Georgia N
13135 Gwinnett County, Georgia 410358
13139 Hall County, Georgia 86179
13151 Henry County, Georgia 95310
13153 Houston County, Georgia N
13179 Liberty County, Georgia N
13185 Lowndes County, Georgia 46357
13215 Muscogee County, Georgia 73918
13217 Newton County, Georgia 45031
13223 Paulding County, Georgia 68718
13245 Richmond County, Georgia 73581
13247 Rockdale County, Georgia 36169
13285 Troup County, Georgia N
13295 Walker County, Georgia N
13297 Walton County, Georgia 38131
13313 Whitfield County, Georgia N
15001 Hawaii County, Hawaii 82308
15003 Honolulu County, Hawaii 444852
15007 Kauai County, Hawaii 33376
15009 Maui County, Hawaii 82975
16001 Ada County, Idaho 200072
16005 Bannock County, Idaho 37925
16019 Bonneville County, Idaho 45463
16027 Canyon County, Idaho 81646
16055 Kootenai County, Idaho 62483
16083 Twin Falls County, Idaho N
17001 Adams County, Illinois 31242
17019 Champaign County, Illinois 100940
17031 Cook County, Illinois 2460949
17037 DeKalb County, Illinois 53116
17043 DuPage County, Illinois 480913
17089 Kane County, Illinois 254579
17091 Kankakee County, Illinois 49917
17093 Kendall County, Illinois N
17097 Lake County, Illinois 338813
17099 LaSalle County, Illinois 49526
17111 McHenry County, Illinois 160074
17113 McLean County, Illinois 92562
17115 Macon County, Illinois 49327
17119 Madison County, Illinois 124519
17143 Peoria County, Illinois 86641
17161 Rock Island County, Illinois 70045
17163 St. Clair County, Illinois 115457
17167 Sangamon County, Illinois 95957
17179 Tazewell County, Illinois 62682
17183 Vermilion County, Illinois 33313
17197 Will County, Illinois 326976
17199 Williamson County, Illinois N
17201 Winnebago County, Illinois 131892
18003 Allen County, Indiana 169089
18005 Bartholomew County, Indiana N
18019 Clark County, Indiana 52538
18035 Delaware County, Indiana 53328
18039 Elkhart County, Indiana 92067
18043 Floyd County, Indiana 36336
18053 Grant County, Indiana 29834
18057 Hamilton County, Indiana 152887
18059 Hancock County, Indiana N
18063 Hendricks County, Indiana 75664
18067 Howard County, Indiana 37109
18081 Johnson County, Indiana 71237
18085 Kosciusko County, Indiana 36901
18089 Lake County, Indiana 215897
18091 LaPorte County, Indiana 47527
18095 Madison County, Indiana 53759
18097 Marion County, Indiana 435562
18105 Monroe County, Indiana 71013
18109 Morgan County, Indiana 35877
18127 Porter County, Indiana 78649
18141 St. Joseph County, Indiana 122060
18157 Tippecanoe County, Indiana 85916
18163 Vanderburgh County, Indiana 82008
18167 Vigo County, Indiana 45018
18177 Wayne County, Indiana 26240
19013 Black Hawk County, Iowa 66338
19049 Dallas County, Iowa 40553
19061 Dubuque County, Iowa 50300
19103 Johnson County, Iowa 79381
19113 Linn County, Iowa 113978
19153 Polk County, Iowa 242013
19155 Pottawattamie County, Iowa 45106
19163 Scott County, Iowa 82600
19169 Story County, Iowa 50725
19193 Woodbury County, Iowa 52346
20015 Butler County, Kansas 31158
20045 Douglas County, Kansas 61654
20091 Johnson County, Kansas 304638
20103 Leavenworth County, Kansas N
20161 Riley County, Kansas N
20173 Sedgwick County, Kansas 236293
20177 Shawnee County, Kansas 81865
20209 Wyandotte County, Kansas 69485
21015 Boone County, Kentucky 63104
21029 Bullitt County, Kentucky 37080
21037 Campbell County, Kentucky 45620
21047 Christian County, Kentucky N
21059 Daviess County, Kentucky 43438
21067 Fayette County, Kentucky 156148
21093 Hardin County, Kentucky 47139
21111 Jefferson County, Kentucky 362461
21117 Kenton County, Kentucky 78350
21145 McCracken County, Kentucky N
21151 Madison County, Kentucky 41473
21195 Pike County, Kentucky N
21227 Warren County, Kentucky 59520
22005 Ascension Parish, Louisiana 56300
22015 Bossier Parish, Louisiana 57965
22017 Caddo Parish, Louisiana 109235
22019 Calcasieu Parish, Louisiana 86636
22033 East Baton Rouge Parish, Louisiana 210471
22045 Iberia Parish, Louisiana N
22051 Jefferson Parish, Louisiana 209375
22055 Lafayette Parish, Louisiana 116905
22057 Lafourche Parish, Louisiana 42047
22063 Livingston Parish, Louisiana 59367
22071 Orleans Parish, Louisiana 173572
22073 Ouachita Parish, Louisiana 63956
22079 Rapides Parish, Louisiana 53350
22097 St. Landry Parish, Louisiana N
22103 St. Tammany Parish, Louisiana 110519
22105 Tangipahoa Parish, Louisiana 53197
22109 Terrebonne Parish, Louisiana 49189
23001 Androscoggin County, Maine 52010
23003 Aroostook County, Maine 32140
23005 Cumberland County, Maine 148368
23011 Kennebec County, Maine 57114
23019 Penobscot County, Maine 71564
23031 York County, Maine 102586
24001 Allegany County, Maryland N
24003 Anne Arundel County, Maryland 281323
24005 Baltimore County, Maryland 416403
24009 Calvert County, Maryland 46033
24013 Carroll County, Maryland 89759
24015 Cecil County, Maryland 51151
24017 Charles County, Maryland 77819
24021 Frederick County, Maryland 125981
24025 Harford County, Maryland 129908
24027 Howard County, Maryland 162160
24031 Montgomery County, Maryland 545950
24033 Prince George's County, Maryland 458809
24037 St. Mary's County, Maryland N
24043 Washington County, Maryland 69082
24045 Wicomico County, Maryland 50346
24510 Baltimore city, Maryland 275356
25001 Barnstable County, Massachusetts 101935
25003 Berkshire County, Massachusetts 62392
25005 Bristol County, Massachusetts 260957
25009 Essex County, Massachusetts 381464
25011 Franklin County, Massachusetts 37620
25013 Hampden County, Massachusetts 208704
25015 Hampshire County, Massachusetts 84439
25017 Middlesex County, Massachusetts 825188
25021 Norfolk County, Massachusetts 357535
25023 Plymouth County, Massachusetts 251780
25025 Suffolk County, Massachusetts 408599
25027 Worcester County, Massachusetts 401087
26005 Allegan County, Michigan 51673
26017 Bay County, Michigan 45958
26021 Berrien County, Michigan 67887
26025 Calhoun County, Michigan 59384
26037 Clinton County, Michigan 36260
26045 Eaton County, Michigan 51571
26049 Genesee County, Michigan 162987
26055 Grand Traverse County, Michigan 42493
26065 Ingham County, Michigan 132992
26073 Isabella County, Michigan 34570
26075 Jackson County, Michigan 65590
26077 Kalamazoo County, Michigan 121725
26081 Kent County, Michigan 301892
26087 Lapeer County, Michigan 37884
26091 Lenawee County, Michigan 43845
26093 Livingston County, Michigan 91640
26099 Macomb County, Michigan 399779
26103 Marquette County, Michigan 29349
26111 Midland County, Michigan 36551
26115 Monroe County, Michigan 65527
26121 Muskegon County, Michigan 71099
26125 Oakland County, Michigan 612277
26139 Ottawa County, Michigan 133200
26145 Saginaw County, Michigan 81993
26147 St. Clair County, Michigan 69328
26155 Shiawassee County, Michigan 28482
26159 Van Buren County, Michigan 32586
26161 Washtenaw County, Michigan 174723
26163 Wayne County, Michigan 696644
27003 Anoka County, Minnesota 183346
27013 Blue Earth County, Minnesota 36964
27019 Carver County, Minnesota 53044
27037 Dakota County, Minnesota 223345
27053 Hennepin County, Minnesota 642966
27109 Olmsted County, Minnesota 80409
27123 Ramsey County, Minnesota 267716
27131 Rice County, Minnesota 34164
27137 St. Louis County, Minnesota 98676
27139 Scott County, Minnesota 73957
27141 Sherburne County, Minnesota 48172
27145 Stearns County, Minnesota 85797
27163 Washington County, Minnesota 130955
27171 Wright County, Minnesota 69154
28033 DeSoto County, Mississippi 82784
28035 Forrest County, Mississippi N
28047 Harrison County, Mississippi 86780
28049 Hinds County, Mississippi 105961
28059 Jackson County, Mississippi 57118
28067 Jones County, Mississippi N
28075 Lauderdale County, Mississippi N
28081 Lee County, Mississippi N
28089 Madison County, Mississippi N
28121 Rankin County, Mississippi 67359
29019 Boone County, Missouri 95032
29021 Buchanan County, Missouri 40743
29031 Cape Girardeau County, Missouri 37877
29037 Cass County, Missouri 49034
29043 Christian County, Missouri N
29047 Clay County, Missouri 117206
29051 Cole County, Missouri 35337
29071 Franklin County, Missouri 48416
29077 Greene County, Missouri 135153
29095 Jackson County, Missouri 330747
29097 Jasper County, Missouri 53728
29099 Jefferson County, Missouri 105633
29165 Platte County, Missouri 49253
29183 St. Charles County, Missouri 199725
29187 St. Francois County, Missouri N
29189 St. Louis County, Missouri 496915
29510 St. Louis city, Missouri 147204
30013 Cascade County, Montana 37619
30029 Flathead County, Montana 44490
30031 Gallatin County, Montana 52765
30049 Lewis and Clark County, Montana 33796
30063 Missoula County, Montana 57639
30111 Yellowstone County, Montana 76900
31055 Douglas County, Nebraska 279918
31109 Lancaster County, Nebraska 161820
31153 Sarpy County, Nebraska 86923
32003 Clark County, Nevada 920124
32031 Washoe County, Nevada 207567
33005 Cheshire County, New Hampshire 39311
33009 Grafton County, New Hampshire 46185
33011 Hillsborough County, New Hampshire 208924
33013 Merrimack County, New Hampshire 76491
33015 Rockingham County, New Hampshire 165030
33017 Strafford County, New Hampshire 68721
34001 Atlantic County, New Jersey 125609
34003 Bergen County, New Jersey 452274
34005 Burlington County, New Jersey 223347
34007 Camden County, New Jersey 240289
34009 Cape May County, New Jersey 43124
34011 Cumberland County, New Jersey 58343
34013 Essex County, New Jersey 354509
34015 Gloucester County, New Jersey 137491
34017 Hudson County, New Jersey 336685
34019 Hunterdon County, New Jersey 64479
34021 Mercer County, New Jersey 179313
34023 Middlesex County, New Jersey 400296
34025 Monmouth County, New Jersey 308589
34027 Morris County, New Jersey 259541
34029 Ocean County, New Jersey 243821
34031 Passaic County, New Jersey 230149
34033 Salem County, New Jersey 28450
34035 Somerset County, New Jersey 171405
34037 Sussex County, New Jersey 76476
34039 Union County, New Jersey 265949
34041 Warren County, New Jersey 52487
35001 Bernalillo County, New Mexico 310792
35005 Chaves County, New Mexico N
35013 Doña Ana County, New Mexico 89853
35025 Lea County, New Mexico 28990
35031 McKinley County, New Mexico N
35035 Otero County, New Mexico N
35043 Sandoval County, New Mexico 57029
35045 San Juan County, New Mexico 50415
35049 Santa Fe County, New Mexico 66840
35061 Valencia County, New Mexico N
36001 Albany County, New York 154886
36005 Bronx County, New York 550661
36007 Broome County, New York 86863
36009 Cattaraugus County, New York 33863
36011 Cayuga County, New York 37287
36013 Chautauqua County, New York 57732
36015 Chemung County, New York 38468
36019 Clinton County, New York 33936
36027 Dutchess County, New York 146654
36029 Erie County, New York 437132
36045 Jefferson County, New York 44171
36047 Kings County, New York 1163409
36051 Livingston County, New York 30735
36053 Madison County, New York 33214
36055 Monroe County, New York 357511
36059 Nassau County, New York 661194
36061 New York County, New York 878397
36063 Niagara County, New York 100346
36065 Oneida County, New York 102805
36067 Onondaga County, New York 223269
36069 Ontario County, New York 54012
36071 Orange County, New York 173704
36075 Oswego County, New York 53288
36079 Putnam County, New York 53348
36081 Queens County, New York 1098023
36083 Rensselaer County, New York 76060
36085 Richmond County, New York 210276
36087 Rockland County, New York 146028
36089 St. Lawrence County, New York 44195
36091 Saratoga County, New York 113616
36093 Schenectady County, New York 73925
36101 Steuben County, New York 43077
36103 Suffolk County, New York 734458
36105 Sullivan County, New York N
36109 Tompkins County, New York N
36111 Ulster County, New York 86254
36113 Warren County, New York 33390
36117 Wayne County, New York 42298
36119 Westchester County, New York 470180
37001 Alamance County, North Carolina 69053
37019 Brunswick County, North Carolina 43512
37021 Buncombe County, North Carolina 120257
37023 Burke County, North Carolina N
37025 Cabarrus County, North Carolina 88166
37027 Caldwell County, North Carolina N
37031 Carteret County, North Carolina 27435
37035 Catawba County, North Carolina 68402
37037 Chatham County, North Carolina N
37045 Cleveland County, North Carolina 42906
37049 Craven County, North Carolina N
37051 Cumberland County, North Carolina 114256
37057 Davidson County, North Carolina 68398
37063 Durham County, North Carolina 146559
37067 Forsyth County, North Carolina 165574
37071 Gaston County, North Carolina 93605
37081 Guilford County, North Carolina 235138
37085 Harnett County, North Carolina 45938
37089 Henderson County, North Carolina 47284
37097 Iredell County, North Carolina 75537
37101 Johnston County, North Carolina 79015
37109 Lincoln County, North Carolina 37418
37119 Mecklenburg County, North Carolina 501343
37125 Moore County, North Carolina N
37127 Nash County, North Carolina 41796
37129 New Hanover County, North Carolina 105482
37133 Onslow County, North Carolina 61780
37135 Orange County, North Carolina 70075
37147 Pitt County, North Carolina 79763
37151 Randolph County, North Carolina 59018
37155 Robeson County, North Carolina 48245
37157 Rockingham County, North Carolina 39205
37159 Rowan County, North Carolina 53487
37161 Rutherford County, North Carolina N
37171 Surry County, North Carolina 29671
37179 Union County, North Carolina 101870
37183 Wake County, North Carolina 500654
37191 Wayne County, North Carolina 50689
37193 Wilkes County, North Carolina N
37195 Wilson County, North Carolina 36470
38015 Burleigh County, North Dakota 50656
38017 Cass County, North Dakota 93671
38035 Grand Forks County, North Dakota 38115
38101 Ward County, North Dakota 36178
39003 Allen County, Ohio 48626
39007 Ashtabula County, Ohio 40885
39013 Belmont County, Ohio 29727
39017 Butler County, Ohio 175616
39023 Clark County, Ohio 60077
39025 Clermont County, Ohio 100806
39029 Columbiana County, Ohio 46333
39035 Cuyahoga County, Ohio 577546
39041 Delaware County, Ohio 94638
39043 Erie County, Ohio 35191
39045 Fairfield County, Ohio 68272
39049 Franklin County, Ohio 617597
39055 Geauga County, Ohio 45188
39057 Greene County, Ohio 74588
39061 Hamilton County, Ohio 378634
39063 Hancock County, Ohio N
39081 Jefferson County, Ohio 28229
39085 Lake County, Ohio 115647
39089 Licking County, Ohio 82103
39093 Lorain County, Ohio 143672
39095 Lucas County, Ohio 190540
39099 Mahoning County, Ohio 99862
39101 Marion County, Ohio N
39103 Medina County, Ohio 88542
39109 Miami County, Ohio 48971
39113 Montgomery County, Ohio 238539
39119 Muskingum County, Ohio 36953
39133 Portage County, Ohio 85543
39139 Richland County, Ohio 48935
39141 Ross County, Ohio N
39145 Scioto County, Ohio N
39151 Stark County, Ohio 170497
39153 Summit County, Ohio 256477
39155 Trumbull County, Ohio 85298
39157 Tuscarawas County, Ohio 41886
39165 Warren County, Ohio 102468
39169 Wayne County, Ohio 54885
39173 Wood County, Ohio 64048
40017 Canadian County, Oklahoma 64521
40027 Cleveland County, Oklahoma 132414
40031 Comanche County, Oklahoma 47716
40037 Creek County, Oklahoma 28879
40101 Muskogee County, Oklahoma 28436
40109 Oklahoma County, Oklahoma 352956
40119 Payne County, Oklahoma N
40125 Pottawatomie County, Oklahoma 28921
40131 Rogers County, Oklahoma 42164
40143 Tulsa County, Oklahoma 298905
40145 Wagoner County, Oklahoma 34264
41003 Benton County, Oregon N
41005 Clackamas County, Oregon 185336
41017 Deschutes County, Oregon 74338
41019 Douglas County, Oregon 38511
41029 Jackson County, Oregon 87779
41033 Josephine County, Oregon N
41035 Klamath County, Oregon N
41039 Lane County, Oregon 160005
41043 Linn County, Oregon 48787
41047 Marion County, Oregon 140223
41051 Multnomah County, Oregon 388842
41053 Polk County, Oregon N
41059 Umatilla County, Oregon 30915
41067 Washington County, Oregon 276940
41071 Yamhill County, Oregon 43456
42001 Adams County, Pennsylvania 50325
42003 Allegheny County, Pennsylvania 614121
42005 Armstrong County, Pennsylvania 30243
42007 Beaver County, Pennsylvania 81997
42011 Berks County, Pennsylvania 198055
42013 Blair County, Pennsylvania 58622
42017 Bucks County, Pennsylvania 318734
42019 Butler County, Pennsylvania 92385
42021 Cambria County, Pennsylvania 59720
42025 Carbon County, Pennsylvania 28846
42027 Centre County, Pennsylvania 73669
42029 Chester County, Pennsylvania 261777
42033 Clearfield County, Pennsylvania 32465
42037 Columbia County, Pennsylvania 31587
42039 Crawford County, Pennsylvania 37155
42041 Cumberland County, Pennsylvania 118304
42043 Dauphin County, Pennsylvania 133936
42045 Delaware County, Pennsylvania 267511
42049 Erie County, Pennsylvania 128869
42051 Fayette County, Pennsylvania 52923
42055 Franklin County, Pennsylvania 71325
42063 Indiana County, Pennsylvania 39664
42069 Lackawanna County, Pennsylvania 96589
42071 Lancaster County, Pennsylvania 256995
42073 Lawrence County, Pennsylvania 38968
42075 Lebanon County, Pennsylvania 63725
42077 Lehigh County, Pennsylvania 166045
42079 Luzerne County, Pennsylvania 145850
42081 Lycoming County, Pennsylvania 52348
42085 Mercer County, Pennsylvania 52111
42089 Monroe County, Pennsylvania 77282
42091 Montgomery County, Pennsylvania 415456
42095 Northampton County, Pennsylvania 143289
42097 Northumberland County, Pennsylvania 42132
42101 Philadelphia County, Pennsylvania 640062
42107 Schuylkill County, Pennsylvania 64722
42111 Somerset County, Pennsylvania 33677
42125 Washington County, Pennsylvania 100053
42129 Westmoreland County, Pennsylvania 171094
42133 York County, Pennsylvania 218782
44003 Kent County, Rhode Island 88131
44005 Newport County, Rhode Island N
44007 Providence County, Rhode Island 299348
44009 Washington County, Rhode Island 63518
45003 Aiken County, South Carolina 69042
45007 Anderson County, South Carolina 79687
45013 Beaufort County, South Carolina 75361
45015 Berkeley County, South Carolina 85266
45019 Charleston County, South Carolina 185892
45031 Darlington County, South Carolina N
45035 Dorchester County, South Carolina 67390
45041 Florence County, South Carolina 56529
45045 Greenville County, South Carolina 219125
45047 Greenwood County, South Carolina N
45051 Horry County, South Carolina 129409
45057 Lancaster County, South Carolina N
45059 Laurens County, South Carolina N
45063 Lexington County, South Carolina 133078
45073 Oconee County, South Carolina N
45075 Orangeburg County, South Carolina 33804
45077 Pickens County, South Carolina 51206
45079 Richland County, South Carolina 182091
45083 Spartanburg County, South Carolina 128403
45085 Sumter County, South Carolina 42756
45091 York County, South Carolina 112662
46099 Minnehaha County, South Dakota 100124
46103 Pennington County, South Dakota 53065
47001 Anderson County, Tennessee N
47009 Blount County, Tennessee 54180
47011 Bradley County, Tennessee 43660
47037 Davidson County, Tennessee 342537
47059 Greene County, Tennessee N
47065 Hamilton County, Tennessee 162158
47093 Knox County, Tennessee 212832
47113 Madison County, Tennessee N
47119 Maury County, Tennessee 37887
47125 Montgomery County, Tennessee 72819
47141 Putnam County, Tennessee N
47147 Robertson County, Tennessee 31367
47149 Rutherford County, Tennessee 140126
47155 Sevier County, Tennessee N
47157 Shelby County, Tennessee 424141
47163 Sullivan County, Tennessee 66783
47165 Sumner County, Tennessee 81968
47179 Washington County, Tennessee 61030
47187 Williamson County, Tennessee 98072
47189 Wilson County, Tennessee 59658
48005 Angelina County, Texas N
48021 Bastrop County, Texas N
48027 Bell County, Texas 127225
48029 Bexar County, Texas 829417
48037 Bowie County, Texas N
48039 Brazoria County, Texas 156908
48041 Brazos County, Texas 98058
48061 Cameron County, Texas 142179
48085 Collin County, Texas 440487
48091 Comal County, Texas 55275
48099 Coryell County, Texas N
48113 Dallas County, Texas 1195172
48121 Denton County, Texas 383147
48135 Ector County, Texas 70962
48139 Ellis County, Texas 73837
48141 El Paso County, Texas 327300
48157 Fort Bend County, Texas 317889
48167 Galveston County, Texas 140504
48181 Grayson County, Texas 52811
48183 Gregg County, Texas 54871
48187 Guadalupe County, Texas 66419
48201 Harris County, Texas 2081122
48203 Harrison County, Texas N
48209 Hays County, Texas 87921
48213 Henderson County, Texas 28124
48215 Hidalgo County, Texas 297399
48231 Hunt County, Texas 36548
48245 Jefferson County, Texas 101165
48251 Johnson County, Texas 66138
48257 Kaufman County, Texas 51670
48291 Liberty County, Texas N
48303 Lubbock County, Texas 138844
48309 McLennan County, Texas 112305
48329 Midland County, Texas 77221
48339 Montgomery County, Texas 226137
48347 Nacogdoches County, Texas N
48355 Nueces County, Texas 166132
48361 Orange County, Texas 36018
48367 Parker County, Texas 56350
48375 Potter County, Texas 54180
48381 Randall County, Texas 65136
48397 Rockwall County, Texas N
48409 San Patricio County, Texas 29522
48423 Smith County, Texas 97364
48439 Tarrant County, Texas 931729
48441 Taylor County, Texas 62530
48451 Tom Green County, Texas 51422
48453 Travis County, Texas 605746
48469 Victoria County, Texas 41661
48471 Walker County, Texas N
48479 Webb County, Texas 93877
48485 Wichita County, Texas 56092
48491 Williamson County, Texas 232060
49005 Cache County, Utah 54215
49011 Davis County, Utah 147898
49035 Salt Lake County, Utah 533166
49049 Utah County, Utah 234843
49053 Washington County, Utah 58552
49057 Weber County, Utah 108765
50007 Chittenden County, Vermont 87990
51003 Albemarle County, Virginia N
51013 Arlington County, Virginia 139177
51015 Augusta County, Virginia N
51019 Bedford County, Virginia N
51041 Chesterfield County, Virginia 165953
51059 Fairfax County, Virginia 607139
51061 Fauquier County, Virginia 34008
51069 Frederick County, Virginia 41551
51085 Hanover County, Virginia 52465
51087 Henrico County, Virginia 162176
51095 James City County, Virginia N
51107 Loudoun County, Virginia 184858
51121 Montgomery County, Virginia N
51153 Prince William County, Virginia 224918
51161 Roanoke County, Virginia 44592
51165 Rockingham County, Virginia 39504
51177 Spotsylvania County, Virginia 63695
51179 Stafford County, Virginia 63134
51199 York County, Virginia N
51510 Alexandria city, Virginia 92510
51550 Chesapeake city, Virginia 103311
51650 Hampton city, Virginia 60545
51680 Lynchburg city, Virginia N
51700 Newport News city, Virginia 83871
51710 Norfolk city, Virginia 99868
51740 Portsmouth city, Virginia 41842
51760 Richmond city, Virginia 101830
51770 Roanoke city, Virginia 46866
51800 Suffolk city, Virginia N
51810 Virginia Beach city, Virginia 218881
53005 Benton County, Washington 82717
53007 Chelan County, Washington 34541
53009 Clallam County, Washington 27940
53011 Clark County, Washington 195708
53015 Cowlitz County, Washington N
53021 Franklin County, Washington N
53025 Grant County, Washington N
53027 Grays Harbor County, Washington N
53029 Island County, Washington N
53033 King County, Washington 1068109
53035 Kitsap County, Washington 113865
53041 Lewis County, Washington 29003
53053 Pierce County, Washington 360143
53057 Skagit County, Washington 51605
53061 Snohomish County, Washington 369429
53063 Spokane County, Washington 207821
53067 Thurston County, Washington 113047
53073 Whatcom County, Washington 97288
53077 Yakima County, Washington 101428
54003 Berkeley County, West Virginia 48663
54011 Cabell County, West Virginia 38457
54033 Harrison County, West Virginia 30105
54039 Kanawha County, West Virginia 86621
54061 Monongalia County, West Virginia 52818
54081 Raleigh County, West Virginia N
54107 Wood County, West Virginia 36872
55009 Brown County, Wisconsin 127788
55025 Dane County, Wisconsin 286402
55027 Dodge County, Wisconsin 42236
55035 Eau Claire County, Wisconsin 55286
55039 Fond du Lac County, Wisconsin 52889
55055 Jefferson County, Wisconsin 43786
55059 Kenosha County, Wisconsin 78721
55063 La Crosse County, Wisconsin 63046
55071 Manitowoc County, Wisconsin 41182
55073 Marathon County, Wisconsin 70400
55079 Milwaukee County, Wisconsin 441342
55087 Outagamie County, Wisconsin 95599
55089 Ozaukee County, Wisconsin 45366
55097 Portage County, Wisconsin 35427
55101 Racine County, Wisconsin 89125
55105 Rock County, Wisconsin 75405
55109 St. Croix County, Wisconsin 45392
55117 Sheboygan County, Wisconsin 58181
55127 Walworth County, Wisconsin 52823
55131 Washington County, Wisconsin 71083
55133 Waukesha County, Wisconsin 210397
55139 Winnebago County, Wisconsin 86547
55141 Wood County, Wisconsin 36444
56021 Laramie County, Wyoming 47460
56025 Natrona County, Wyoming 41279
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.counties {
fill: none;
}
.states {
fill: none;
stroke: #fff;
stroke-linejoin: round;
}
.q0-9 { fill:rgb(247,251,255); }
.q1-9 { fill:rgb(222,235,247); }
.q2-9 { fill:rgb(198,219,239); }
.q3-9 { fill:rgb(158,202,225); }
.q4-9 { fill:rgb(107,174,214); }
.q5-9 { fill:rgb(66,146,198); }
.q6-9 { fill:rgb(33,113,181); }
.q7-9 { fill:rgb(8,81,156); }
.q8-9 { fill:rgb(8,48,107); }
</style>
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/queue.v1.min.js"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>
<script>
var width = 960,
height = 600;
var rateById = d3.map();
var quantize = d3.scale.quantize()
.domain([26240, 4614694])
.range(d3.range(9).map(function(i) { return "q" + i + "-9"; }));
var projection = d3.geo.albersUsa()
.scale(1280)
.translate([width / 2, height / 2]);
var path = d3.geo.path()
.projection(projection);
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
queue()
.defer(d3.json, "/mbostock/raw/4090846/us.json")
.defer(d3.csv, "employed.csv", function(d) { rateById.set(d.id, +d.employed); })
.await(ready);
function ready(error, us) {
svg.append("g")
.attr("class", "counties")
.selectAll("path")
.data(topojson.feature(us, us.objects.counties).features)
.enter().append("path")
.attr("class", function(d) { return quantize(rateById.get(d.id)); })
.attr("d", path);
svg.append("path")
.datum(topojson.mesh(us, us.objects.states, function(a, b) { return a !== b; }))
.attr("class", "states")
.attr("d", path);
}
d3.select(self.frameElement).style("height", height + "px");
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.