Skip to content

Instantly share code, notes, and snippets.

@leeannoneal
Created April 29, 2015 14:12
Show Gist options
  • Save leeannoneal/e35382b04b370d57f06b to your computer and use it in GitHub Desktop.
Save leeannoneal/e35382b04b370d57f06b to your computer and use it in GitHub Desktop.
Rural schools in Texas | Load data
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Top-heavy school districts</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<svg width="400" height="400">
<circle cx="100" cy="60" r="40" stroke="#A18F5A" stroke-width="4" fill="#E6CC80" />
<circle cx="150" cy="70" r="38" stroke="#A18F5A" stroke-width="4" fill="#E6CC80" />
<circle cx="175" cy="90" r="30" stroke="#A18F5A" stroke-width="4" fill="#E6CC80" />
<circle cx="145" cy="20" r="6" stroke="#A18F5A" stroke-width="4" fill="#A18F5A" />
<circle cx="180" cy="16" r="6" stroke="#A18F5A" stroke-width="4" fill="#A18F5A" />
<path d="M145 20 Q 160 24, 169 71"
fill="none" stroke="#A18F5A" stroke-width="4"/>
<path d="M180 16 Q 165 24, 175 70" fill="none" stroke="#A18F5A" stroke-width="4"/>
Sorry, your browser does not support inline SVG.
</svg>
<p>Not much to see here; try looking in the console!</p>
<script type="text/javascript">
//Load in contents of CSV file
d3.csv("rural_schools_admin_teaching.csv", function(data) {
//Now CSV contents have been transformed into
//an array of JSON objects.
//Log 'data' to the console, for verification.
console.log(data);
});
</script>
</body>
</html>
county_number county_name region_number region_name district_number district_name insturction_perstudent instruction_percent admin_perstudent admin_percent
162 Mcmullen 2 Corpus Christi 162904 McMullen County ISD 7621 16.98 29827.88 66.43817334
178 Nueces 2 Corpus Christi 178908 Port Aransas ISD 6846 20.16 22351.91 65.8275532
217 Stonewall 14 Abilene 217901 Aspermont ISD 6130 41.64 3996.88 27.15164306
22 Brewster 18 Midland 22902 Marathon ISD 12908 57.58 4679.38 20.87223607
122 Jeff Davis 18 Midland 122902 Valentine ISD 15562 49.27 5841.8 18.49467547
22 Brewster 18 Midland 22004 Terlingua CSD 8592 46.91 3364.27 18.36835321
115 Hudspeth 19 El Paso 115902 Sierra Blanca ISD 5852 51.01 1965.65 17.13299261
115 Hudspeth 19 El Paso 115903 Dell City ISD 14963 57.6 3924.79 15.10843942
109 Hill 12 Waco 109903 Covington ISD 4719 47.21 1498.45 14.99081036
148 Lipscomb 16 Amarillo 148905 Darrouzett ISD 6839 57.43 1697.21 14.25239079
138 Knox 9 Wichita Falls 138904 Benjamin ISD 8140 56.9 2014.89 14.08356001
167 Mills 12 Waco 167903 Star ISD 8121 51.11 2197.08 13.82617553
198 Robertson 6 Huntsville 198901 Bremond ISD 6426 46.35 1857.85 13.40095037
244 Wilbarger 9 Wichita Falls 244905 Northside ISD 4680 49.73 1244.13 13.21874252
50 Coryell 12 Waco 50909 Jonesboro ISD 4759 53 1186.77 13.21605438
180 Oldham 16 Amarillo 180903 Adrian ISD 5928 47.75 1637.78 13.19234679
167 Mills 12 Waco 167902 Mullin ISD 8327 47.33 2275.3 12.93402191
196 Refugio 3 Victoria 196901 Austwell-Tivoli ISD 7378 47.26 1973.57 12.63980011
244 Wilbarger 9 Wichita Falls 244901 Harrold ISD 7558 54.83 1740.26 12.6247669
93 Grimes 6 Huntsville 93905 Richards ISD 6590 54.61 1516.05 12.56299098
50 Coryell 12 Waco 50904 Oglesby ISD 5681 54.6 1302.89 12.52045653
99 Hardeman 9 Wichita Falls 99902 Chillicothe ISD 6427 49.61 1615.85 12.47386599
132 Kent 17 Lubbock 132902 Jayton-Girard ISD 9517 40.94 2891.08 12.43625284
34 Cass 8 Mt. Pleasant 34909 Bloomburg ISD 5355 55.95 1185.24 12.38368864
156 Martin 18 Midland 156905 Grady ISD 6056 46.71 1603.33 12.3671265
95 Hale 17 Lubbock 95902 Cotton Center ISD 6488 48.44 1646.89 12.29608217
6 Armstrong 16 Amarillo 6902 Claude ISD 5487 50.79 1327.04 12.28536479
193 Real 20 San Antonio 193902 Leakey ISD 5073 51.86 1196.3 12.22998599
28 Caldwell 13 Austin 28906 Prairie Lea ISD 5256 50.42 1274.1 12.22056253
169 Montague 9 Wichita Falls 169909 Prairie Valley ISD 7017 59.78 1428.29 12.1695785
18 Bosque 12 Waco 18906 Iredell ISD 6357 57.94 1331.76 12.13815483
195 Reeves 18 Midland 195902 Balmorhea ISD 6452 49.59 1565.48 12.03144477
166 Milam 6 Huntsville 166907 Buckholts ISD 4748 50.02 1134.7 11.95413816
214 Starr 1 Edinburg 214902 San Isidro ISD 7303 53.62 1624.14 11.92364606
145 Leon 6 Huntsville 145907 Oakwood ISD 6205 52.72 1402 11.91275792
90 Gray 16 Amarillo 90903 McLean ISD 6513 56.19 1380.52 11.9101302
75 Fayette 13 Austin 75906 Fayetteville ISD 5498 56.21 1157.92 11.8369106
144 Lee 13 Austin 144903 Dime Box ISD 6654 53.86 1449.24 11.73017102
148 Lipscomb 16 Amarillo 148903 Higgins ISD 7741 52.8 1713.3 11.68523355
63 Dickens 17 Lubbock 63906 Patton Springs ISD 7227 43.29 1936.39 11.59902916
187 Polk 6 Huntsville 187903 Goodrich ISD 5542 47.78 1342.85 11.57680005
56 Dallam 16 Amarillo 56902 Texline ISD 7172 52.94 1564.91 11.55015909
177 Nolan 14 Abilene 177903 Blackwell CISD 10705 50.75 2431.35 11.52666773
127 Jones 14 Abilene 127905 Lueders-Avoca ISD 7013 52.15 1532.24 11.39387891
65 Donley 16 Amarillo 65902 Hedley ISD 7958 57.92 1551.89 11.29565709
226 Tom Green 15 San Angelo 226908 Veribest ISD 4341 45.2 1084.06 11.28819945
103 Hartley 16 Amarillo 103901 Channing ISD 6282 53.61 1304.33 11.13130747
201 Rusk 7 Kilgore 201903 Laneville ISD 7108 53.43 1474.36 11.08199811
222 Terrell 18 Midland 222901 Terrell County ISD 11660 42.99 2974.74 10.96822118
169 Montague 9 Wichita Falls 169906 Gold Burg ISD 5381 52.51 1123.79 10.96567258
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment