Skip to content

Instantly share code, notes, and snippets.

@wykhuh
Created May 3, 2015 21:03
Show Gist options
  • Save wykhuh/bb3fe1bf89329aa54000 to your computer and use it in GitHub Desktop.
Save wykhuh/bb3fe1bf89329aa54000 to your computer and use it in GitHub Desktop.
week 5: scatterplot National Parks Visitors vs Campers
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>National Parks Visitors vs Campers</h1>
<p>This graph shows the total number of visitors (x axis) vs the total number of campers (y axis) at the various National Parks in 2014. The parks with no campers are marked in red.</p>
<script src="http://d3js.org/d3.v3.min.js" ></script>
<script src="scatterPlotChart.js"></script>
<script src="parksCharts.js"></script>
</body>
</html>
id park state acres lat lon date camp_backcountry camp_concession camp_rv camp_tent camp_total lodging_concession visitors
364 Wrangell-St. Elias NP & PRES AK 13175791.02 61.7104448 -142.9856804 1980-12-02 0 0 0 0 0 0 74722
133 Gates of the Arctic NP & PRES AK 8472505.52 66.9188889 -151.5161111 1980-12-02 6166 0 0 0 6166 0 12669
256 Noatak NPRES AK 6587071.39 67.5711111 -162.9652778 1978-12-01 0 0 0 0 0 0 0
87 Denali NP & PRES AK 6075028.96 63.82571729999999 -149.7317834 1917-02-26 38443 0 45413 25873 109729 0 531315
192 Katmai NP & PRES AK 4093066.82 58.2794444 -154.9516667 1980-12-02 483 0 0 1898 2381 4216 30896
203 Lake Clark NP & PRES AK 4030130.17 60.20969410000001 -154.3815698 1980-12-02 2174 0 0 0 2174 0 16100
85 Death Valley NP CA-NV 3373063.14 36.5322649 -116.9325408 1933-02-11 0 12271 67415 53868 133554 30730 1101312
143 Glacier Bay NP & PRES AK 3281789.43 58.66580729999999 -136.9002147 1980-12-02 6303 0 0 764 7067 11719 500727
23 Bering Land Bridge NPRES AK 2697391.01 65.9258669 -164.4377877 1978-12-01 1123 0 0 0 1123 0 2636
369 Yukon-Charley Rivers NPRES AK 2526512.44 64.9715824 -143.290758 1978-12-01 10471 0 0 0 10471 0 2329
367 Yellowstone NP ID-MT-WY 2219790.71 44.427963 -110.588455 1872-03-01 41243 539461 77383 86281 744368 560372 3513484
200 Kobuk Valley NP AK 1750716.16 67.4104187 -159.4501034 1978-12-01 0 0 0 0 0 0 0
234 Mojave NPRES CA 1541426.47 35.0524699 -118.1739645 1994-10-31 0 0 378 395 773 0 554560
204 Lake Mead NRA AZ-NV 1495805.53 45.3832095 -92.7973676 1936-10-13 168814 42667 144364 113429 469274 21027 6942873
99 Everglades NP FL 1400539.3 25.8582443 -81.3850695 1934-05-30 5875 0 11483 9984 27342 0 1110901
145 Glen Canyon NRA AZ-UT 1254116.62 36.86443209999999 -111.5879381 1958-04-18 62367 103292 7259 5967 178885 74432 2368452
149 Grand Canyon NP AZ 1201647.03 36.1069652 -112.1129972 1908-01-11 269236 61203 34904 73502 438845 667988 4756771
144 Glacier NP MT 1013322.17 48.8901226 -121.9457016 1910-05-11 29869 0 104379 110583 244831 117074 2338528
260 Olympic NP WA 922650.1 48.10094780000001 -123.4327577 1909-03-02 69731 4375 66937 140112 281155 93893 3243872
24 Big Bend NP TX 801163.21 42.8814034 -88.20675729999999 1935-06-20 24723 9858 21990 47035 103606 46057 314102
189 Joshua Tree NP CA 790635.74 34.134728 -116.3130661 1936-08-10 10604 0 62214 192548 265366 0 1589904
368 Yosemite NP CA 761347.5 37.8651011 -119.5383294 1890-10-01 190339 0 166744 480094 837177 832378 3882642
193 Kenai Fjords NP AK 669983.65 60.04377640000001 -149.8163644 1978-12-01 432 0 0 1130 1562 0 270666
48 Cape Krusenstern NM AK 649096.15 67.45054999999999 -163.5490191 1978-12-01 0 0 0 0 0 0 0
11 Aniakchak NM & PRES AK 601293.93 56.8516437 -158.1136847 1978-12-01 381 0 0 0 381 0 134
25 Big Cypress NPRES FL 574453.32 26.0485819 -81.0754657 1974-10-11 11513 0 8910 4073 24496 0 1192856
178 Isle Royale NP MI 571790.11 47.9958654 -88.9092899 1931-03-03 29662 346 0 5758 35766 7331 14560
155 Great Smoky Mountains NP TN-NC 522426.88 35.61193129999999 -83.54965659999999 1934-06-15 86153 0 113373 151150 350676 11201 10099276
257 North Cascades NP WA 504780.94 48.7667 -121.8 1968-10-02 21547 0 0 0 21547 0 23865
195 Kings Canyon NP CA 461901.2 36.8878548 -118.5551477 1890-10-01 15603 0 25783 81537 122923 50938 502268
314 Sequoia NP CA 404062.63 36.4863668 -118.5657516 1890-09-25 29013 0 34902 129562 193477 71279 1039137
45 Canyonlands NP UT 337597.83 38.3268693 -109.8782592 1964-09-12 77518 0 8810 14892 101220 0 542431
262 Organ Pipe Cactus NM AZ 330688.86 32.0877596 -112.9058802 1937-04-13 424 0 14176 3457 18057 0 224548
166 Hawaii Volcanoes NP HI 323431.38 19.4193697 -155.2884969 1916-08-01 4621 6579 99 546 11845 28868 1693005
151 Grand Teton NP WY 310044.22 43.7904282 -110.6817627 1929-02-26 29524 302762 459 46 332791 215811 2791392
291 Rocky Mountain NP CO 265795.2 35.8053663 -94.7674486 1915-01-26 34321 0 50808 112197 197326 0 3434751
62 Channel Islands NP CA 249561 33.9986014 -119.8583772 1938-04-26 23068 0 0 0 23068 0 342161
20 Badlands NP SD 242755.94 43.8553804 -102.3396912 1929-03-04 1419 38088 2740 8622 50869 9087 868094
50 Capitol Reef NP UT 241904.26 38.3669703 -111.2615042 1937-08-02 2081 0 21285 17147 40513 0 786514
239 Mount Rainier NP WA 236381.49 46.85230749999999 -121.7603229 1899-03-02 48679 0 30515 58755 137949 40261 1264259
271 Petrified Forest NP AZ 221415.74 34.9099897 -109.8067916 1906-12-08 252 0 0 0 252 0 836799
347 Voyageurs NP MN 218200.15 48.4840955 -92.8270873 1971-01-08 31941 0 0 0 31941 3264 239160
90 Dinosaur NM CO-UT 210283.31 40.243578 -109.0145613 1915-10-04 27507 0 9877 16308 53692 0 250625
315 Shenandoah NP VA 199116.92 30.1802151 -95.45577259999999 1926-05-22 40644 0 45288 106161 192093 84395 1255321
77 Crater Lake NP OR 183224.05 42.8684411 -122.1684785 1902-05-22 2929 49994 0 3313 56236 34053 535508
30 Biscayne NP FL 172971.11 25.4824229 -80.20831030000001 1968-10-18 0 0 0 2044 2044 0 525745
310 Santa Monica Mountains NRA CA 156669.93 34.1203 -118.9318 1978-11-10 144 0 0 0 144 0 694714
154 Great Sand Dunes NP & PRES CO 148987.87 37.7915959 -105.5943276 2004-09-13 3405 0 15180 25881 44466 0 271774
370 Zion NP UT 147237.02 37.322817 -113.0457164 1909-07-31 23257 0 77932 126194 227383 81720 3189696
355 White Sands NM NM 143733.25 32.7872403 -106.3256816 1933-01-18 2087 0 0 0 2087 0 503660
286 Redwood NP CA 138999.37 41.2131788 -124.0046276 1968-10-02 3829 0 0 3676 7505 0 429166
159 Gulf Islands NS FL-MS 138305.52 48.8386964 -123.4559417 1971-01-08 0 0 114125 33137 147262 0 4455240
264 Padre Island NS TX 130434.27 26.8316969 -97.4022109 1962-09-28 13638 0 28759 21430 63827 0 578815
27 Big South Fork NRRA KY-TN 123679.05 37.4704087 -84.93277499999999 1974-03-07 11272 0 25045 5050 41367 2264 599906
29 Bighorn Canyon NRA MT-WY 120296.22 29.648785 -98.459969 1966-10-15 0 0 6306 3420 9726 0 224083
294 Ross Lake NRA WA 117574.59 46.4895684 -69.62294659999999 1968-10-02 22892 0 12190 25862 60944 7702 710612
95 El Malpais NM NM 114313.87 34.7607372 -107.9563238 1987-12-31 0 0 0 0 0 0 164063
28 Big Thicket NPRES TX 109085.52 30.2859554 -94.521901 1974-10-11 2450 0 0 0 2450 0 109956
207 Lassen Volcanic NP CA 106452.33 40.49766 -121.4206552 1907-05-06 5898 0 27054 56334 89286 5904 432977
206 Lake Roosevelt NRA WA 100390.31 47.5649063 -94.1120108 1946-12-18 3371 2474 52419 45858 104122 5000 1180898
32 Blue Ridge PKWY NC-VA 96107.37 37.2896554 -79.8529719 1936-06-30 2429 0 29104 49070 80603 47480 13941749
40 Buffalo NR AR 94293.31 42.88644679999999 -78.8783689 1972-03-01 28602 0 16865 40446 85913 2266 1357057
297 Saguaro NP AZ 91442.42 32.2967359 -111.166615 1933-03-01 1377 0 0 0 1377 0 673572
157 Guadalupe Mountains NP TX 86367.1 31.891227 -104.8605034 1966-10-15 3188 0 5073 7719 15980 0 166868
44 Canyon de Chelly NM AZ 83840 36.1336111 -109.4694444 1931-02-14 827 10755 0 0 11582 5891 827761
146 Golden Gate NRA CA 81380.36 38.3594924 -88.2042078 1972-10-27 1363 0 0 4095 5458 21642 15004420
263 Ozark NSR MO 80785.04 37.0208865 -93.2060163 1964-08-27 13073 0 23696 57568 94337 2697 1296437
153 Great Basin NP NV 77180 38.98333299999999 -114.3 1986-10-27 1063 0 12147 22621 35831 0 107526
15 Arches NP UT 76678.98 38.733081 -109.5925139 1929-04-12 1211 0 15436 25252 41899 0 1284767
341 Upper Delaware S&RR NY-PA 74999.56 47.42111 -88.09582999999999 1978-11-10 0 0 0 0 0 0 230845
273 Pictured Rocks NL MI 73235.83 46.5332835 -86.4882206 1966-10-15 17702 0 4685 13220 35607 0 527897
251 New River Gorge NR WV 72185.76 37.87071460000001 -81.0533854 1978-11-10 0 0 1177 6544 7721 0 1124799
318 Sleeping Bear Dunes NL MI 71210.15 44.8977314 -85.98885279999999 1970-10-21 19499 0 51904 46073 117476 0 1395401
278 Point Reyes NS CA 71055.41 38.0690894 -122.8069356 1962-09-13 44489 3311 0 0 47800 10815 2433944
329 Theodore Roosevelt NP ND 70446.89 46.978965 -103.5387091 1947-04-25 849 0 12973 13804 27626 0 559580
13 Apostle Islands NL WI 69371.89 47.0027301 -90.69083529999999 1970-09-26 12795 0 0 0 12795 0 290059
299 Saint Croix NSR MN-WI 67469.74 17.7058446 -64.858516 1968-10-02 90041 0 0 0 90041 0 671582
86 Delaware Water Gap NRA NJ-PA 67029.82 40.9675956 -75.12212219999999 1965-09-01 52701 7996 0 0 60697 0 4041672
91 Dry Tortugas NP FL 64701.22 24.6651511 -82.8553984 1935-01-04 0 0 0 4438 4438 0 64865
202 Lake Chelan NRA WA 61949.48 48.0269741 -120.3377317 1968-10-02 5614 0 0 0 5614 6799 35360
8 Amistad NRA TX 58500 35.9189256 -103.1538304 1965-11-11 0 0 2628 262 2890 0 1130096
42 Canaveral NS FL 57661.69 39.79125670000001 -6.393096099999999 1975-01-03 3161 0 0 0 3161 0 1451225
232 Mississippi NRRA MN 53775 32.3546679 -89.3985283 1988-11-18 0 0 0 0 0 0 85637
78 Craters of the Moon NM ID 53571.05 43.41665 -113.5166497 1924-05-02 207 0 7714 6956 14877 0 214993
221 Mammoth Cave NP KY 52830.19 37.1861597 -86.0999753 1926-05-25 4744 0 10676 34156 49576 31790 522628
229 Mesa Verde NP CO 52485.17 37.2308729 -108.4618335 1906-06-29 0 0 5974 40400 46374 24287 501563
243 Natchez Trace PKWY TN-MS-AL 52302 33.7668642 -89.0187511 1938-05-18 0 0 7065 5175 12240 0 5846474
2 Acadia NP ME 48995.91 44.3385559 -68.2733346 1916-07-08 1230 0 33369 126474 161073 0 2563129
53 Carlsbad Caverns NP NM 46766.45 32.1478553 -104.5567138 1923-10-25 146 0 0 0 146 0 397309
208 Lava Beds NM CA 46692.42 41.734428 -121.515656 1925-11-21 0 0 2566 9081 11647 0 138499
334 Timucuan EHP FL 46281.07 29.6613424 -83.0367005 1988-02-16 0 0 0 0 0 0 1121318
205 Lake Meredith NRA TX 44977.63 35.6589219 -101.6442225 1965-03-15 0 0 14099 3762 17861 0 692195
46 Cape Cod NS MA 43607.14 41.69909579999999 -70.32091129999999 1961-08-07 0 0 0 0 0 3644 4426750
81 Curecanti NRA CO 43094.72 38.4641441 -107.1839024 1965-02-11 218 0 33468 12544 46230 0 931367
353 Whiskeytown NRA CA 42503.25 40.6387601 -122.5597373 1965-11-08 5470 25364 2580 0 33414 0 851901
18 Assateague Island NS MD-VA 41320.04 38.0607973 -75.2362381 1965-09-21 2034 0 21515 38429 61978 0 2170681
80 Cumberland Island NS GA 36346.83 30.8532764 -81.4388858 1972-10-23 6333 0 0 13171 19504 0 61401
38 Bryce Canyon NP UT 35835.08 37.6283161 -112.1676947 1923-06-08 1449 0 50005 38054 89508 52063 1435741
366 Wupatki NM AZ 35422.13 35.519932 -111.371154 1924-12-09 0 0 0 0 0 0 195962
233 Missouri NRR SD-NE 34159 37.9642529 -91.8318334 1978-11-10 0 0 0 0 0 0 134760
60 Chaco Culture NHP NM 33960.19 36.0607712 -107.9617606 1907-03-11 0 0 4234 8061 12295 0 38386
359 Wind Cave NP SD 33847.08 37.5125855 -83.9288134 1903-01-09 220 0 4714 3814 8748 0 547022
21 Bandelier NM NM 33676.67 35.77817530000001 -106.2696082 1916-02-11 285 0 3089 4442 7816 0 130106
161 Haleakala NP HI 33264.62 20.7203826 -156.1551524 1916-08-01 1375 0 0 7907 9282 0 1142040
82 Cuyahoga Valley NP OH 32571.48 41.2808248 -81.56781199999999 1974-12-27 0 0 0 0 0 6632 2189849
31 Black Canyon of the Gunnison NP CO 30749.75 38.5753936 -107.7415961 1999-10-21 390 0 7369 9685 17444 0 183045
47 Cape Hatteras NS NC 30350.65 35.2443439 -75.5975296 1937-08-17 0 0 23684 42934 66618 0 2153350
255 Niobrara NSR NE 29101.02 42.7547231 -98.02868230000001 1991-05-24 0 0 0 0 0 0 53443
49 Cape Lookout NS NC 28243.36 34.60528000000001 -76.53667 1966-03-10 2593 0 0 0 2593 25606 430927
274 Pinnacles NP CA 26685.73 36.4905655 -121.1824925 2013-01-10 0 0 0 0 0 0 196635
134 Gateway NRA NJ-NY 26606.63 26.5775747 -81.750361 1972-10-27 0 0 0 0 0 0 6021713
74 Congaree NP SC 26275.82 33.9045982 -80.7950886 2003-11-10 460 0 0 0 460 0 120122
79 Cumberland Gap NHP KY-TN-VA 24546.83 36.59952699999999 -83.66852519999999 1940-06-11 1427 0 9033 2626 13086 0 879934
184 John D. Rockefeller, Jr. MEM PKWY WY 23777.22 44.0836219 -110.7215955 1972-08-25 1642 4199 0 0 5841 11748 1264842
180 Jean Lafitte NHP & PRES LA 22420.86 29.7360438 -90.1267407 1907-03-04 0 0 0 0 0 0 445524
73 Colorado NM CO 20536.39 39.5500507 -105.7820674 1911-05-24 194 0 10794 10997 21985 0 416862
65 Chesapeake and Ohio Canal NHP MD-WV 19586 39.6059571 -77.8959501 1938-09-23 0 0 0 6479 6479 0 5066219
101 Fire Island NS NY 19580.42 40.64759970000001 -73.1459474 1964-09-11 407 2285 0 0 2692 0 384343
39 Buck Island Reef NM VI 19015.47 17.7870946 -64.62061059999999 1961-12-28 0 0 0 0 0 0 34400
282 Prince William Forest Park VA 16080.82 38.5852778 -77.3797222 1936-11-14 356 20821 1537 19955 42669 0 315072
177 Indiana Dunes NL IN 15313.73 41.6532678 -87.0524338 1966-11-05 0 0 3655 11643 15298 0 1553372
215 Little River Canyon NPRES AL 15288.37 34.3707481 -85.661936 1992-10-24 0 0 0 0 0 0 224931
346 Virgin Islands NP VI 14948.46 18.335765 -64.896335 1956-08-02 0 15509 0 0 15509 17348 426930
70 City of Rocks NRES ID 14407.19 32.5763255 -107.9743712 1988-11-18 0 0 0 0 0 0 94825
185 John Day Fossil Beds NM OR 14062.02 44.5556229 -119.6448321 1974-10-26 0 0 0 0 0 0 183420
197 Klondike Gold Rush NHP Alaska AK 12996.49 64.2008413 -149.4936733 1976-06-30 4170 0 0 1470 5640 0 1085202
198 Klondike Gold Rush NHP Seattle WA 12996.49 47.6062095 -122.3320708 1976-06-30 0 0 0 0 0 0 62022
309 Sand Creek Massacre NHS CO 12583.34 38.5414524 -102.5051022 2007-04-27 0 0 0 0 0 0 7402
68 Chiricahua NM AZ 12024.73 32.0022249 -109.3426306 1924-04-18 0 0 4263 3931 8194 0 45125
135 Gauley River NRA WV 11589.05 38.2828575 -80.7027131 1988-10-26 0 0 2128 10466 12594 0 117354
324 Tallgrass Prairie NPRES KS 10894 41.3181334 -81.617722 1996-11-12 0 0 0 0 0 0 17776
190 Kalaupapa NHP HI 10778.88 21.1893014 -156.9818053 1980-12-22 0 0 0 0 0 0 67210
67 Chickasaw NRA OK 9898.63 30.7637991 -88.0747222 1902-07-01 0 0 40382 37275 77657 0 1152083
64 Chattahoochee River NRA GA 9800.32 31.2706125 -85.04100389999999 1978-08-15 0 0 0 0 0 0 3119160
288 Rio Grande W&SR TX 9600 -32.0353776 -52.1075802 1978-11-10 1183 0 0 0 1183 0 321
66 Chickamauga and Chattanooga NMP GA-TN 9077.57 35.1723185 -85.22746579999999 1890-08-19 0 0 0 0 0 0 996694
72 Colonial NHP VA 8676.91 32.8524216 -98.4278355 1930-07-03 0 0 0 0 0 0 3335060
131 Fredericksburg & Spotsylvania NMP VA 8379.63 38.3031837 -77.4605399 1927-02-14 0 0 0 0 0 0 873328
246 National Park of American Samoa SAMOA 8256.67 -14.2331268 -169.4760133 1988-10-31 0 0 0 0 0 0 13953
127 Fossil Butte NM WY 8198 41.8460555 -110.7437887 1972-10-23 0 0 0 0 0 0 16623
287 Richmond NBP VA 8003.51 37.5407246 -77.4360481 1936-03-02 0 0 0 0 0 0 179552
247 Natural Bridges NM UT 7636.49 37.6013829 -110.0137437 1908-04-16 0 0 3020 4377 7397 0 87119
272 Petroglyph NM NM 7209.3 35.1354259 -106.7459881 1990-06-27 0 0 0 0 0 0 115859
140 George Washington MEM PKWY MD-VA 7035.22 38.8435735 -77.0490823 1933-08-10 0 0 0 0 0 0 7472150
245 National Capital Parks East DC-MD 6841.24 38.7477465 -77.0039062 1933-08-10 0 0 0 0 0 0 1311995
267 Pecos NHP NM 6702.76 31.4229124 -103.4932293 1965-06-28 0 0 0 0 0 0 38256
58 Cedar Breaks NM UT 6154.6 37.6353733 -112.8452799 1933-08-22 0 0 1541 2673 4214 0 762907
316 Shiloh NMP TN-MS 6048 38.5614383 -89.8973233 1894-12-27 0 0 0 0 0 0 409086
104 Florissant Fossil Beds NM CO 5998.09 38.9127373 -105.2838511 1969-08-20 0 0 0 0 0 0 63297
141 Gettysburg NMP PA 5987.67 39.8309293 -77.2310955 1895-02-11 0 0 0 0 0 0 1020702
57 Catoctin Mountain Park MD 5891.49 39.6530454 -77.46443339999999 1936-11-14 477 0 784 7706 8967 0 188170
117 Fort Pulaski NM GA 5623.1 32.0270883 -80.89076759999999 1924-10-15 0 0 0 0 0 0 387010
173 Hot Springs NP AR 5549.1 34.5037004 -93.0551795 1832-04-20 0 0 15705 3901 19606 0 1424484
258 Obed W&SR TN 5073.35 45.7278694 16.2008176 1976-10-12 781 0 15 1500 2296 0 215767
222 Manassas NBP VA 5072.74 38.7509488 -77.47526669999999 1940-05-10 0 0 0 0 0 0 514140
75 Coronado NMEM AZ 4830.22 32.6858853 -117.1830891 1941-08-18 0 0 0 0 0 0 118838
277 Piscataway Park MD 4626.37 38.6866847 -77.0506896 1961-10-04 0 0 0 0 0 0 109473
252 Nez Perce NHP MT-ID-OR-WA 4564.93 46.41818139999999 -116.622876 1965-05-15 0 0 0 0 0 0 221439
160 Hagerman Fossil Beds NM ID 4351.15 42.7816632 -114.9521998 1988-11-18 0 0 0 0 0 0 22482
33 Bluestone NSR WV 4309.51 37.5674681 -80.9843446 1988-10-26 0 0 0 0 0 0 38450
266 Pea Ridge NMP AR 4300.35 36.4539625 -94.1152041 1956-07-20 0 0 0 0 0 0 104686
196 Kings Mountain NMP SC 3945.29 35.2451342 -81.34119419999999 1931-03-03 154 0 0 0 154 0 251093
164 Harpers Ferry NHP MD-VA-WV 3670.41 39.3253786 -77.7388818 1944-06-30 0 0 0 0 0 0 261202
348 Walnut Canyon NM AZ 3529.26 35.1715578 -111.5093624 1915-11-30 0 0 0 0 0 0 135230
342 Valley Forge NHP PA 3467.7 40.0970506 -75.46963579999999 1976-07-04 0 0 0 0 0 0 1990881
265 Palo Alto Battlefield NHP TX 3441.74 26.0199747 -97.4651828 1978-11-10 0 0 0 0 0 0 41516
210 Lewis & Clark NHP OR-WA 3410.15 46.6195461 -122.4554639 1958-05-29 0 0 0 0 0 0 244921
311 Saratoga NHP NY 3409.67 43.0448483 -73.6300729 1938-06-01 0 0 0 0 0 0 58773
12 Antietam NB MD 3230.37 39.416111 -77.74249999999999 1890-08-30 0 0 0 0 0 0 337079
5 Agate Fossil Beds NM NE 3057.87 42.4233759 -103.7549847 1965-06-05 0 0 0 0 0 0 12440
323 Sunset Crater Volcano NM AZ 3040 35.3711364 -111.5113115 1930-05-26 0 0 0 0 0 0 176723
313 Scotts Bluff NM NE 3004.81 41.8666341 -103.6671662 1919-12-12 0 0 0 0 0 0 119159
194 Kennesaw Mountain NBP GA 2852.64 33.9763745 -84.57915899999999 1917-02-18 0 0 0 0 0 0 2119013
270 Petersburg NB VA 2739.72 59.9342802 30.3350986 1926-07-03 0 0 0 0 0 0 205572
147 Golden Spike NHS UT 2735.28 41.6193809 -112.5487922 1957-04-02 0 0 0 0 0 0 44125
93 Effigy Mounds NM IA 2526.39 43.089124 -91.1856397 1949-10-25 0 0 0 0 0 0 77812
358 Wilson's Creek NB MO 2368.1 -28.5733467 153.4326674 1960-04-22 0 0 0 0 0 0 161058
103 Flight 93 NMEM PA 2319.96 39.9577086 -79.00451799999999 2002-09-24 0 0 0 0 0 0 284226
307 San Juan Island NHP WA 2145.56 48.55136710000001 -123.0781062 1966-09-09 0 0 0 0 0 0 268946
172 Horseshoe Bend NMP AL 2040 36.2292338 -91.76431269999999 1956-07-25 0 0 0 0 0 0 64359
349 War in the Pacific NHP GUAM 2036.98 13.4223754 144.698958 1978-08-18 0 0 0 0 0 0 266191
344 Vicksburg NMP MS-LA 1802.18 32.3526456 -90.877882 1899-02-21 0 0 0 0 0 0 550874
14 Appomattox Court House NHP VA 1774.12 37.3570894 -78.8252911 1930-06-18 0 0 0 0 0 0 278776
170 Hopewell Culture NHP OH 1765.26 39.3615356 -83.0931702 1923-03-02 0 0 0 0 0 0 36432
290 Rock Creek Park DC 1755.21 39.7360804 -106.5705841 1975-01-01 0 0 0 0 0 0 2437948
199 Knife River Indian Villages NHS ND 1748.8 47.3527645 -101.3817356 1974-10-26 0 0 0 0 0 0 10750
238 Morristown NHP NJ 1710.72 40.79676670000001 -74.4815438 1933-03-02 0 0 0 0 0 0 264363
235 Monocacy NB MD 1647.01 39.2580142 -76.7107887 1933-08-10 0 0 0 0 0 0 56187
152 Grant-Kohrs Ranch NHS MT 1618.38 46.42144260000001 -112.7420892 1972-08-25 0 0 0 0 0 0 20565
219 Lyndon B. Johnson NHP TX 1570.15 31.1813771 -94.77664899999999 1969-12-02 0 0 0 0 0 0 88427
6 Alibates Flint Quarries NM TX 1370.97 35.5836092 -101.6698299 1965-08-21 0 0 0 0 0 0 4513
89 Devils Tower NM WY 1347.21 44.5886461 -104.6985456 1906-09-24 0 0 6288 5459 11747 0 440875
109 Fort Donelson NB TN-KY 1307.88 36.4873259 -87.8587718 1928-03-26 0 0 0 0 0 0 262317
7 Allegheny Portage Railroad NHS PA 1284.27 40.45970550000001 -78.5618265 1962-12-29 0 0 0 0 0 0 172883
96 El Morro NM NM 1278.72 35.048302 -108.323898 1906-12-08 0 0 1013 1586 2599 0 46256
240 Mount Rushmore NMEM SD 1278.45 43.87910249999999 -103.4590667 1925-03-23 0 0 0 0 0 0 2144808
182 Jewel Cave NM SD 1273.51 43.7309932 -103.8318878 1908-02-07 0 0 0 0 0 0 104348
156 Greenbelt Park MD 1175.42 38.9834164 -76.8972147 1975-01-01 0 0 5950 7211 13161 0 132688
191 Kaloko Honokohau NHP HI 1163.05 19.677777 -156.0285106 1978-11-10 0 0 0 0 0 0 154206
335 Tonto NM AZ 1120 33.6452781 -111.1126846 1907-12-19 0 0 0 0 0 0 36360
303 Salinas Pueblo Missions NM NM 1071.42 34.25899 -106.093769 1909-11-01 0 0 0 0 0 0 30537
230 Minute Man NHP MA 1026.81 43.2113227 -72.9446589 1959-04-14 0 0 0 0 0 0 1056549
254 Ninety Six NHS SC 1021.94 34.1751267 -82.024007 1976-08-19 0 0 0 0 0 0 65688
236 Montezuma Castle NM AZ 1015.52 34.6115755 -111.8349854 1906-12-08 0 0 0 0 0 0 407017
26 Big Hole NB MT 1010.61 43.425129 -121.31335 1910-06-23 0 0 0 0 0 0 36987
106 Fort Bowie NHS AZ 999.45 32.1467719 -109.4345747 1964-08-30 0 0 0 0 0 0 6964
304 Salt River Bay NHP & Ecological Pres VI 989.42 17.780167 -64.761601 1992-02-24 0 0 0 0 0 0 5192
115 Fort Necessity NB PA 902.8 32.0479344 -91.81790629999999 1931-03-04 0 0 0 0 0 0 219546
111 Fort Laramie NHS WY 866.6 42.2127448 -104.5171788 1938-07-16 0 0 0 0 0 0 49038
168 Home of Franklin D. Roosevelt NHS NY 849.74 41.7671987 -73.9356279 1944-01-15 0 0 0 0 0 0 179340
171 Hopewell Furnace NHS PA 848.06 40.2065349 -75.7679859 1938-08-03 0 0 0 0 0 0 48105
76 Cowpens NB SC 841.56 35.0167918 -81.8039916 1929-03-04 0 0 0 0 0 0 200836
305 San Antonio Missions NHP TX 829.53 29.3169639 -98.44995589999999 1978-11-10 0 0 0 0 0 0 1395337
223 Manzanar NHS CA 813.81 36.7272288 -118.1527894 1992-03-03 0 0 0 0 0 0 77633
339 Tuzigoot NM AZ 811.89 34.77040119999999 -112.0271266 1939-07-25 0 0 0 0 0 0 74903
88 Devils Postpile NM CA 800.19 37.6250213 -119.0850309 1911-07-06 0 0 1067 2814 3881 0 114414
22 Bent's Old Fort NHS CO 798.8 38.0451229 -103.4336605 1960-06-03 0 0 0 0 0 0 24555
51 Capulin Volcano NM NM 792.84 36.7810744 -103.9695127 1916-08-09 0 0 0 0 0 0 50892
174 Hovenweep NM CO-UT 784.93 37.3837623 -109.0726022 1923-03-02 0 0 831 902 1733 0 26808
214 Little Bighorn Battlefield NM MT 765.34 45.570709 -107.433945 1940-07-01 0 0 0 0 0 0 281436
16 Arkansas Post NMEM AR 757.51 34.02371249999999 -91.34373029999999 1960-07-06 0 0 0 0 0 0 30860
123 Fort Union NM NM 720.6 30.4074412 -83.0473573 1954-06-28 0 0 0 0 0 0 10934
112 Fort Larned NHS KS 718.39 38.1828818 -99.21819289999999 1964-08-31 0 0 0 0 0 0 24607
150 Grand Portage NM MN 709.97 47.963776 -89.6848121 1951-09-02 48 0 0 0 48 0 88877
322 Stones River NB TN 709.46 35.9707627 -86.39311359999999 1927-03-03 0 0 0 0 0 0 272499
259 Ocmulgee NM GA 703.7 32.9865082 -83.70096389999999 1934-06-14 0 0 0 0 0 0 122799
94 Eisenhower NHS PA 690.46 26.5601696 -81.5925427 1967-11-27 0 0 0 0 0 0 58240
132 Friendship Hill NHS PA 674.56 39.7764666 -79.9320018 1978-11-10 0 0 0 0 0 0 34317
138 George Washington Birthplace NM VA 661.73 38.1839208 -76.92023619999999 1966-10-15 0 0 0 0 0 0 131984
224 Marsh-Billings-Rockefeller NHP VT 643.07 43.6331052 -72.5411869 1992-08-26 0 0 0 0 0 0 39086
241 Muir Woods NM CA 553.55 37.8953689 -122.5780709 1908-01-09 0 0 0 0 0 0 1049400
142 Gila Cliff Dwellings NM NM 533.13 33.2294152 -108.2648251 1907-11-16 0 0 0 0 0 0 31135
108 Fort Davis NHS TX 523 30.5882111 -103.8946253 1961-09-08 0 0 0 0 0 0 49842
9 Andersonville NHS GA 515.61 32.1959947 -84.13990849999999 1970-10-16 0 0 0 0 0 0 127189
118 Fort Raleigh NHS NC 512.93 35.9361736 -75.7097162 1941-04-05 0 0 0 0 0 0 264987
261 Oregon Caves NM OR 487.98 42.0957577 -123.4033293 1909-07-12 0 0 0 0 0 5906 69405
54 Casa Grande Ruins NM AZ 472.5 32.9954589 -111.5355282 1889-03-02 0 0 0 0 0 0 63698
124 Fort Union Trading Post NHS ND-MT 440.14 48.00016 -104.041483 1961-07-04 0 0 0 0 0 0 11521
365 Wright Brothers NMEM NC 428.44 38.8879604 -77.01947270000001 1927-03-02 0 0 0 0 0 0 430517
283 Pu'uhonua o Honaunau NHP HI 419.8 19.4159563 -155.9058358 1955-07-26 0 0 0 0 0 0 401808
336 Tumacacori NHP AZ 360.32 31.5694025 -111.0517516 1908-09-15 0 0 0 0 0 0 38017
248 Navajo NM AZ 360 35.9000121 -109.0339832 1909-03-20 216 0 1252 1319 2787 0 65778
1 Abraham Lincoln Birthplace NHP KY 344.5 37.5309061 -85.7371759 1916-07-17 0 0 0 0 0 0 241264
187 John Muir NHS CA 344.14 37.913461 -122.041304 1964-08-31 0 0 0 0 0 0 41535
126 Fort Washington Park MD 341 38.71312 -77.025503 1975-01-01 0 0 0 0 0 0 466078
332 Thomas Stone NHS MD 328.25 39.1923144 -76.7452035 1978-11-10 0 0 0 0 0 0 5843
19 Aztec Ruins NM NM 318.4 36.8345552 -108.000254 1923-01-24 0 0 0 0 0 0 44721
351 Washita Battlefield NHS OK 315.2 35.6199266 -99.7051547 1996-11-12 0 0 0 0 0 0 13186
295 Russell Cave NM AL 310.45 34.9764537 -85.81425709999999 1961-05-11 0 0 0 0 0 0 18530
113 Fort Matanzas NM FL 300.11 29.70940689999999 -81.2363509 1924-10-15 0 0 0 0 0 0 568529
227 Martin Van Buren NHS NY 284.93 40.5781052 -116.8983495 1974-10-26 0 0 0 0 0 0 19187
110 Fort Frederica NM GA 284.49 31.2230803 -81.3892757 1936-05-26 0 0 0 0 0 0 228103
276 Pipestone NM MN 281.78 43.9985815 -96.3128117 1937-08-25 0 0 0 0 0 0 62151
52 Carl Sandburg Home NHS NC 263.65 35.2714404 -82.4471894 1968-10-17 0 0 0 0 0 0 82377
158 Guilford Courthouse NMP NC 250.33 36.1332951 -79.8403417 1917-03-02 0 0 0 0 0 0 173261
333 Timpanogos Cave NM UT 250 40.443584 -111.7055 1922-10-14 0 0 0 0 0 0 95679
34 Booker T. Washington NM VA 239.01 33.4475566 -112.0610507 1966-10-15 0 0 0 0 0 0 26127
122 Fort Sumter NM SC 234.74 32.75234760000001 -79.8746925 1948-04-28 0 0 0 0 0 0 828521
343 Vanderbilt Mansion NHS NY 211.65 41.8011788 -73.94083669999999 1940-12-18 0 0 0 0 0 0 398447
169 Homestead NM of America NE 211.09 25.5005895 -80.3974585 1936-03-19 0 0 0 0 0 0 69156
139 George Washington Carver NM MO 210 38.9009 -76.9773 1943-07-14 0 0 0 0 0 0 41535
125 Fort Vancouver NHS WA 206.72 45.6260578 -122.6592734 1948-06-19 0 0 0 0 0 0 803740
43 Cane River Creole NHP LA 205.5 31.6628449 -93.008815 1994-11-02 0 0 0 0 0 0 28981
211 Lincoln Boyhood NMEM IN 199.96 38.1176736 -86.9962243 1962-02-19 0 0 0 0 0 0 99795
181 Jefferson NEM MO-IL 192.83 39.377255 -105.8005988 1935-12-21 0 0 0 0 0 0 1817091
301 Saint-Gaudens NHS NH 190.75 43.106895 0.7237629999999999 1964-08-31 0 0 0 0 0 0 37785
167 Herbert Hoover NHS IA 186.8 -33.4493956 -70.7322066 1965-08-12 0 0 0 0 0 0 139086
97 Eleanor Roosevelt NHS NY 180.5 40.21784239999999 -74.4620504 1977-05-27 0 0 0 0 0 0 60456
188 Johnstown Flood NMEM PA 177.76 40.3278129 -78.9206946 1964-08-31 0 0 0 0 0 0 141354
175 Hubbell Trading Post NHS AZ 160.09 35.7067 -109.5607 1965-08-28 0 0 0 0 0 0 81475
285 Rainbow Bridge NM UT 160 37.0774313 -110.9642924 1910-05-30 0 0 0 0 0 0 62910
41 Cabrillo NM CA 159.94 37.5605272 -122.0240758 1913-10-14 0 0 0 0 0 0 893434
244 National Capital Parks Central DC 155.84 38.8814696 -77.0327183 1933-08-10 0 0 0 0 0 0 1999232
293 Rosie The Riveter WWII Home Front CA 145.19 37.909804 -122.357321 2000-10-25 0 0 0 0 0 0 45549
218 Lowell NHP MA 141.29 42.6334247 -71.31617179999999 1978-06-05 0 0 0 0 0 0 514524
356 Whitman Mission NHS WA 138.53 46.0413594 -118.4645543 1936-06-29 0 0 0 0 0 0 58499
107 Fort Caroline NMEM FL 138.39 31.3303211 -81.4728713 1950-09-21 0 0 0 0 0 0 187843
360 Wolf Trap NP for the Performing Arts VA 130.28 38.9365734 -77.2644631 1966-10-15 0 0 0 0 0 0 388283
59 Cesar E. Chavez NM CA 116.56 42.6534413 -83.3115316 2012-10-08 0 0 0 0 0 0 8854
317 Sitka NHP AK 116.16 57.0530556 -135.33 1910-03-23 0 0 0 0 0 0 157297
83 Dayton Aviation Heritage NHP OH 110.52 39.7555266 -84.21184009999999 1992-10-16 0 0 0 0 0 0 57565
242 Natchez NHP MS 108.3 31.5604442 -91.40317100000001 1988-10-07 0 0 0 0 0 0 215257
350 Washington Monument DC 106.01 38.8894838 -77.0352791 1876-08-02 0 0 0 0 0 0 423170
337 Tuskegee Airmen NHS AL 89.68 32.4563649 -85.6807271 1998-11-06 0 0 0 0 0 0 24319
328 Theodore Roosevelt Island DC 88.5 38.8966824 -77.063008 1970-01-01 0 0 0 0 0 0 146500
237 Moores Creek NB NC 87.75 35.0011728 -81.0224336 1926-06-02 463 0 0 0 463 0 87774
284 Pu'ukohola Heiau NHS HI 86.24 20.025858 -155.821797 1972-08-17 0 0 0 0 0 0 134734
296 Sagamore Hill NHS NY 83.02 40.8852537 -73.4968292 1962-07-25 0 0 0 0 0 0 19319
308 San Juan NHS PR 75.13 -31.5272732 -68.5214081 1949-02-14 0 0 0 0 0 0 1382906
120 Fort Smith NHS AR-OK 75 35.3859242 -94.39854749999999 1961-09-13 0 0 0 0 0 0 88790
352 Weir Farm NHS CT 74.2 41.2565035 -73.45639059999999 1990-10-31 0 0 0 0 0 0 34082
183 Jimmy Carter NHS GA 72.21 33.9110836 -84.2074975 1987-12-23 0 0 0 0 0 0 62057
321 Steamtown NHS PA 62.48 39.8164609 -81.3598391 1986-10-21 0 0 0 0 0 0 84257
163 Hampton NHS MD 62.04 37.0298687 -76.34522179999999 1948-06-22 0 0 0 0 0 0 32498
320 Statue of Liberty NM NY-NJ 60.86 40.6892494 -74.04450039999999 1924-10-15 0 0 0 0 0 0 4198815
363 World War II Valor in the Pacific NM HI-CA 59.03 21.3674624 -157.9385358 2008-12-05 0 0 0 0 0 0 1620814
338 Tuskegee Institute NHS AL 57.92 32.430237 -85.7077266 1974-10-26 0 0 0 0 0 0 11786
319 Springfield Armory NHS MA 54.93 42.10725800000001 -72.581665 1974-10-26 0 0 0 0 0 0 20595
61 Chamizal NMEM TX 54.9 31.7691945 -106.4597284 1966-06-30 0 0 0 0 0 0 108399
306 San Francisco Maritime NHP CA 49.86 37.81369249999999 -122.3099864 1988-06-27 0 0 0 0 0 0 4256888
176 Independence NHP PA 44.85 39.0911161 -94.41550679999999 1948-06-28 0 0 0 0 0 0 3648050
36 Boston NHP MA 43.82 42.3600825 -71.0588801 1974-10-01 0 0 0 0 0 0 2476078
231 Minuteman Missile NHS SD 43.8 43.9315525 -102.1596984 1999-11-29 0 0 0 0 0 0 62058
114 Fort McHenry NM & HS MD 43.26 39.2632976 -76.57992329999999 1925-03-03 0 0 0 0 0 0 769300
289 River Raisin NBP MI 42.18 42.01064360000001 -83.9302996 2009-03-30 0 0 0 0 0 0 55281
275 Pipe Spring NM AZ 40 36.8619441 -112.7376047 1923-05-31 0 0 0 0 0 0 56484
226 Martin Luther King, Jr. NHS GA 38.7 28.0478127 -81.9619116 1980-10-10 0 0 0 0 0 0 766030
249 New Bedford Whaling NHP MA 34 41.6353404 -70.92321989999999 1996-11-12 0 0 0 0 0 0 272731
84 De Soto NMEM FL 30 32.5896998 -96.8570738 1948-03-11 0 0 0 0 0 0 342039
116 Fort Point NHS CA 29 42.348506 -71.050364 1970-10-16 0 0 0 0 0 0 1677457
63 Charles Pinckney NHS SC 28.45 32.847027 -79.823387 1973-04-13 0 0 0 0 0 0 53486
17 Arlington House (The Robert E Lee Memorial) VA 28.08 38.8811673 -77.07261629999999 1925-03-04 0 0 0 0 0 0 671638
216 Little Rock Central High School NHS AR 27.28 34.7380615 -92.2975331 1998-11-06 0 0 0 0 0 0 115908
69 Christiansted NHS VI 27.15 17.7466397 -64.7031977 1952-03-04 0 0 0 0 0 0 109159
137 George Rogers Clark NHP IN 26.17 37.08316560000001 -111.6674071 1966-07-23 0 0 0 0 0 0 125218
269 Perry's Victory & Intl. Peace MEM OH 25.38 41.6541053 -82.8112519 1936-06-02 0 0 0 0 0 0 129440
3 Adams NHP MA 23.82 46.2023685 -121.4910493 1946-12-09 0 0 0 0 0 0 178468
148 Governors Island NM NY 22.78 40.68945009999999 -74.016792 2001-01-19 0 0 0 0 0 0 698227
330 Thomas Edison NHP NJ 21.25 38.2555889 -85.7382892 1955-12-06 0 0 0 0 0 0 51344
55 Castillo de San Marcos NM FL 19.38 29.89786179999999 -81.31151870000001 1924-10-15 0 0 0 0 0 0 760708
268 Pennsylvania Avenue NHS DC 19 39.9667054 -75.1787524 1965-09-30 0 0 0 0 0 0 54035
331 Thomas Jefferson MEM DC 18.36 38.8810035 -77.0364628 1934-06-26 0 0 0 0 0 0 2708607
281 President's Park DC 18.07 38.8956172 -77.0365834 1980-05-06 0 0 0 0 0 0 723923
354 White House DC 18.07 38.8976763 -77.0365298 1933-08-10 0 0 0 0 0 0 569391
209 Lyndon Baines Johnson Memorial Grove on the Potomac DC 17 38.8781052 -77.05104949999999 1975-01-01 0 0 0 0 0 0 254167
119 Fort Scott NHS KS 16.69 37.8397626 -94.7082951 1978-10-19 0 0 0 0 0 0 25966
10 Andrew Johnson NHS TN 16.68 36.0921036 -83.58194189999999 1935-08-29 0 0 0 0 0 0 42863
121 Fort Stanwix NM NY 15.52 43.210587 -75.455292 1935-08-21 0 0 0 0 0 0 60819
98 Eugene O'Neill NHS CA 13.19 25.6569771 -100.2612571 1976-10-12 0 0 0 0 0 0 3202
165 Harry S Truman NHS MO 12.59 41.9644843 -87.65887560000002 1983-05-23 0 0 0 0 0 0 29364
212 Lincoln Home NHS IL 12.24 39.84010200000001 -96.5224807 1971-08-18 0 0 0 0 0 0 218132
340 Ulysses S. Grant NHS MO 9.6 37.5814095 -101.3551696 1989-10-02 0 0 0 0 0 0 40287
302 Salem Maritime NHS MA 9.02 42.5213163 -70.8866429 1938-03-17 0 0 0 0 0 0 403758
71 Clara Barton NHS MD 8.59 46.8545781 -96.7920415 1974-10-26 0 0 0 0 0 0 20028
129 Frederick Douglass NHS DC 8.57 38.862934 -76.9848727 1962-09-05 0 0 0 0 0 0 45492
312 Saugus Iron Works NHS MA 8.51 42.4683162 -71.007654 1968-04-05 0 0 0 0 0 0 11181
362 World War II Memorial DC 8.25 38.8893913 -77.0403613 2004-05-29 0 0 0 0 0 0 4230793
128 Franklin Delano Roosevelt MEM DC 8.14 38.8834579 -77.04295359999999 1997-05-02 0 0 0 0 0 0 2938239
179 James A. Garfield NHS OH 7.82 36.4254558 -94.02498589999999 1980-12-28 0 0 0 0 0 0 17956
361 Women's Rights NHP NY 7.44 33.75231 -84.3869579 1980-12-08 0 0 0 0 0 0 30254
213 Lincoln Memorial DC 7.29 38.8892686 -77.050176 1911-02-09 0 0 0 0 0 0 7139072
130 Frederick Law Olmsted NHS MA 7.21 42.3254431 -71.1325507 1979-10-12 0 0 0 0 0 0 8667
298 Saint Croix Island International Historic Site ME 6.5 45.1289091 -67.1339603 1949-06-08 0 0 0 0 0 0 11588
300 Saint Paul's Church NHS NY 6.13 39.8393722 -90.4342382 1943-07-05 0 0 0 0 0 0 16460
250 New Orleans Jazz NHP LA 5.13 29.9501432 -90.0688294 1994-10-31 0 0 0 0 0 0 36017
279 Port Chicago Naval Magazine NM CA 5 38.0575024 -122.0297304 1992-10-28 0 0 0 0 0 0 786
253 Nicodemus NHS KS 4.59 39.394452 -99.61705549999999 1996-11-12 0 0 0 0 0 0 3374
292 Roger Williams NMEM RI 4.56 44.1055572 -70.2026729 1965-10-22 0 0 0 0 0 0 51523
357 William Howard Taft NHS OH 3.64 35.5684218 -85.2389919 1969-12-02 0 0 0 0 0 0 23609
225 Martin Luther King, Jr. Memorial DC 2.74 39.4762813 -119.7910761 2011-10-16 0 0 0 0 0 0 3199136
345 Vietnam Veterans MEM DC 2.18 38.8912483 -77.0476963 1980-07-01 0 0 0 0 0 0 4403467
217 Longfellow NHS MA 1.98 40.5045201 -77.67360339999999 1972-10-09 0 0 0 0 0 0 46371
37 Brown v. Board of Education NHS KS 1.85 39.0379232 -95.67650309999999 1992-10-26 0 0 0 0 0 0 26868
201 Korean War Veterans Memorial DC 1.56 38.8878912 -77.04767489999999 1995-07-27 0 0 0 0 0 0 3767287
220 Maggie L. Walker NHS VA 1.29 37.547695 -77.43732829999999 1978-11-10 0 0 0 0 0 0 9045
327 Theodore Roosevelt Inaugural NHS NY 1.18 42.9015649 -78.8727423 1966-11-02 0 0 0 0 0 0 22025
162 Hamilton Grange NMEM NY 1.04 40.963749 -79.09804299999999 1962-04-27 0 0 0 0 0 0 20943
56 Castle Clinton NM NY 1 40.7034401 -74.0168023 1946-08-12 0 0 0 0 0 0 4727110
280 President W.J. Clinton Birthplace Home NHS AR 1 33.6675341 -93.5965598 1995-07-28 0 0 0 0 0 0 11113
136 General Grant NMEM NY 0.76 -31.3947926 -64.141716 1958-08-14 0 0 0 0 0 0 100622
35 Boston African American NHS MA 0.59 42.3599645 -71.06520119999999 1980-10-10 0 0 0 0 0 0 408641
92 Edgar Allan Poe NHS PA 0.52 39.962041 -75.14991409999999 1978-11-10 0 0 0 0 0 0 13701
102 First Ladies NHS OH 0.46 52.7358807 -2.3966621 2000-10-10 0 0 0 0 0 0 15326
100 Federal Hall NMEM NY 0.45 40.7073993 -74.0102088 1939-05-26 0 0 0 0 0 0 137538
4 African Burial Ground NM NY 0.35 40.7146525 -74.0046484 1993-04-19 0 0 0 0 0 0 54861
105 Ford's Theatre NHS DC 0.3 38.8966912 -77.0264064 1932-02-12 0 0 0 0 0 0 655441
326 Theodore Roosevelt Birthplace NHS NY 0.11 40.7384872 -73.9887112 1962-07-25 0 0 0 0 0 0 21065
186 John F. Kennedy NHS MA 0.09 42.5921107 -82.8817098 1967-05-26 0 0 0 0 0 0 26273
228 Mary McLeod Bethune Council House NHS DC 0.07 38.9081527 -77.0307655 1991-12-11 0 0 0 0 0 0 9295
325 Thaddeus Kosciuszko NMEM PA 0.02 42.7917176 -73.76135719999999 1972-10-21 0 0 0 0 0 0 1475
(function(){
var chartOptions = {
width: 800,
height: 500,
barPadding: 0,
padding: [20, 20, 20, 60]
};
var chart = ScatterPlotChart();
chart.init(chartOptions);
chart.createSVG();
d3.csv('parks.csv', function(data){
var circles,
drawOptions,
toolTipOptions,
xAxisOptions,
yAxisOptions,
xMaxValue,
yMaxValue,
xMinValue,
yMinValue,
yScaleOptions,
xScaleOptions,
xAxis,
yAxis;
xMaxValue = d3.max(data, function(d){
return +d.visitors;
});
xMinValue = d3.min(data, function(d){
return +d.visitors;
});
xScaleOptions = {
scaleType: 'linear',
rangeMin: chartOptions.padding[3],
rangeMax: chartOptions.width - chartOptions.padding[1] ,
domainMin: 0,
domainMax: xMaxValue
};
yMaxValue = d3.max(data, function(d){
return +d.camp_total;
});
yMinValue = d3.min(data, function(d){
if (d.camp_total > 0) {
return +d.camp_total;
}
});
yScaleOptions = {
scaleType: 'linear',
rangeMin: chartOptions.padding[0],
rangeMax: chartOptions.height - chartOptions.padding[2] ,
domainMin: yMaxValue,
domainMax: 0
};
drawOptions = {
xKey: 'visitors',
yKey: 'camp_total',
radius: 0
};
toolTipOptions = {
label: 'park',
fields: [
{ label: 'visitors', key: 'visitors' },
{ label: 'campers', key: 'camp_total' }
]
};
xAxisOptions = {
xTranslate: 0,
yTranslate: chartOptions.height - chartOptions.padding[2],
class: 'x axis'
};
yAxisOptions = {
xTranslate: chartOptions.padding[3],
yTranslate: 0,
class: 'y axis'
};
transitionOptions = {
duration: 3000,
attr: function(){
return { 'r': 3 , 'color' : 'red'};
},
delay: function() {
return function(d, i ) {
return i * 5;
};
},
sort: function(){
return function(a, b){
return d3.ascending(+a.camp_total, +b.camp_total);
};
}
};
chart.addXScale(xScaleOptions);
chart.addYScale(yScaleOptions);
circles = chart.appendElements(data, 'circle');
chart.drawElements(circles, drawOptions );
chart.addToolTip(circles, toolTipOptions);
xAxis = chart.addAxis('xScale', 'bottom');
chart.appendAxis(xAxis, xAxisOptions);
yAxis = chart.addAxis('yScale', 'left');
chart.appendAxis(yAxis, yAxisOptions);
chart.addTransition(circles, transitionOptions);
});
})();
var ScatterPlotChart = function() {
var width,
height,
barPadding,
len,
svg,
padding,
yScale,
xScale;
var addComma = d3.format("0,000");
var init = function(options) {
width = options.width || 1000;
height = options.height || 1000;
barPadding = options.barPadding || 1;
padding = options.padding || [20, 20, 20, 20];
};
var createSVG = function(){
svg = d3.select('body')
.append('svg')
.attr('width', width)
.attr('height', height);
return svg;
};
var appendElements = function(data, element) {
len = data.length;
return svg.selectAll(element)
.data(data)
.enter()
.append(element);
};
var drawElements = function(elements, options){
console.log(options)
elements
.attr({
cx: function(d){
return xScale(+d[options.xKey]);
},
cy: function(d) {
return yScale(+d[options.yKey]);
},
r: options.radius,
fill: function(d) {
if(d.camp_total > 0) {
return 'green';
} else {
return 'red';
}
}
});
};
var addToolTip = function(elements, options) {
var str ='';
elements
.append('title')
.text(function(d){
str = d[options.label] + ' - ';
options.fields.forEach(function(field){
str += field.label + ': ' + addComma(d[field.key])+ ', ';
});
return str;
});
};
var addLinearScale = function(options) {
return d3.scale.linear()
.range([options.rangeMin, options.rangeMax])
.domain([options.domainMin, options.domainMax]);
};
var addOrdinalScale = function(options) {
return d3.scale.ordinal()
.rangeRoundBands([options.rangeMin, options.rangeMax], options.barPadding)
.domain(options.domain);
};
var addYScale = function(options) {
if (options.scaleType === 'linear') {
yScale = addLinearScale(options);
} else if (options.scaleType === 'ordinal') {
yScale = addOrdinalScale(options);
}
};
var addXScale = function(options) {
if (options.scaleType === 'linear') {
xScale = addLinearScale(options);
} else if (options.scaleType === 'ordinal') {
xScale = addOrdinalScale(options);
}
};
var addAxis = function(scale, orient) {
if (scale === 'xScale') {
scale = xScale;
} else {
scale = yScale;
}
return d3.svg.axis()
.scale(scale)
.ticks(5)
.orient(orient);
};
var appendAxis = function(axis, options) {
svg.append("g")
.attr("class", options.class)
.attr("transform", "translate(" + options.xTranslate + " ," +
options.yTranslate + " )")
.call(axis);
};
var addTransition = function(elements, options) {
elements
.sort(options.sort())
.transition()
.delay(options.delay())
.duration(options.duration)
.attr(options.attr());
};
return {
appendElements: appendElements,
drawElements: drawElements,
addToolTip: addToolTip,
createSVG: createSVG,
init: init,
addYScale: addYScale,
addXScale: addXScale,
addAxis: addAxis,
appendAxis: appendAxis,
addTransition: addTransition
};
};
svg {
}
body {
margin: 20px;
font-family: sans-serif;
}
.axis path,
.axis line {
fill: none;
stroke: black;
shape-rendering: crispEdges;
}
.axis text {
font-family: sans-serif;
font-size: 11px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment