Skip to content

Instantly share code, notes, and snippets.

Christian MilNeil vigorousnorth

Block or report user

Report or block vigorousnorth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View portlandPrecincts.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vigorousnorth
vigorousnorth / index.html
Last active May 28, 2019
Pie chart with rotated wedge labels
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
var piecolors = d3.scale.category20c();
var w = 600,
h = 460,
@vigorousnorth
vigorousnorth / arcs.js
Last active Mar 22, 2019
Arc map with scaled arrowheads
View arcs.js
var svg,
width = 900,
height = 700;
var projection = d3.geo.equirectangular()
.rotate([-10,0]).scale(height/5).translate([width / 2, height / 2]).clipExtent([[0,0.1*height],[width,height*0.85]]);
var path = d3.geo.path()
.projection(projection);
View GreaterPortland_8foot_geo.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View driving2019.csv
side year miles gas
left 1956 3683.6965 2.3829
right 1957 3722.7648 2.4026
bottom 1958 3776.8595 2.2539
top 1959 3912.0962 2.3079
right 1960 3942.1488 2.2658
bottom 1961 3984.2224 2.2526
right 1962 4089.4064 2.2158
bottom 1963 4230.6536 2.1237
bottom 1964 4383.9219 2.1039
View WEO_Data.csv
Country 2017
Afghanistan 1888.86
Albania 12471.74
Algeria 15149.60
Angola 6813.21
Antigua and Barbuda 26198.35
Argentina 20676.52
Armenia 9098.38
Australia 49882.30
Austria 49247.22
View educationIndicesByNation.json
[{"geoAreaCode":"4","geoAreaName":"Afghanistan","reportedTopics":["DC_TOF_SCHIPSL"]},{"geoAreaCode":"248","geoAreaName":"Åland Islands"},{"geoAreaCode":"8","geoAreaName":"Albania","reportedTopics":["SE_SEP_MATACH","SE_LGP_ACHIMA","SE_GPI_MATACH","SE_GPI_REAACH","SE_MAT_PROF","SE_REA_PROF","SE_SEP_REAACH","DC_TOF_SCHIPSL","SE_PRE_GPIPARTN","SE_PRE_PARTN","SE_NAP_ACHIMA","SE_NAP_ACHIRE","SE_URP_MATACH","SE_LGP_ACHIRE","SE_URP_REAACH"]},{"geoAreaCode":"12","geoAreaName":"Algeria","reportedTopics":["SE_DEV_ONTRK","SE_GPI_TRATEA","SE_SEP_MATACH","SE_LGP_ACHIMA","SE_GPI_MATACH","SE_GPI_REAACH","SE_MAT_PROF","SE_REA_PROF","SE_SEP_REAACH","DC_TOF_SCHIPSL","SE_TRA_GRDL","SE_PRE_GPIPARTN","SE_PRE_PARTN","SE_NAP_ACHIMA","SE_NAP_ACHIRE","SE_URP_MATACH","SE_LGP_ACHIRE","SE_URP_REAACH"]},{"geoAreaCode":"16","geoAreaName":"American Samoa"},{"geoAreaCode":"20","geoAreaName":"Andorra","reportedTopics":["SE_ACC_COMP","SE_GPI_TRATEA","SE_INF_DSBL","SE_TRA_GRDL","SE_ACC_ELEC","SE_ACC_HNWA","SE_ACC_INTN","SE_ACC_DWAT","SE_ACC_SAN
View educationIndicesByNation.json
[{"geoAreaCode":"4","geoAreaName":"Afghanistan","reportedTopics":["DC_TOF_SCHIPSL"]},{"geoAreaCode":"248","geoAreaName":"Åland Islands"},{"geoAreaCode":"8","geoAreaName":"Albania","reportedTopics":["SE_SEP_MATACH","SE_LGP_ACHIMA","SE_GPI_MATACH","SE_GPI_REAACH","SE_MAT_PROF","SE_REA_PROF","SE_SEP_REAACH","DC_TOF_SCHIPSL","SE_PRE_GPIPARTN","SE_PRE_PARTN","SE_NAP_ACHIMA","SE_NAP_ACHIRE","SE_URP_MATACH","SE_LGP_ACHIRE","SE_URP_REAACH"]},{"geoAreaCode":"12","geoAreaName":"Algeria","reportedTopics":["SE_DEV_ONTRK","SE_GPI_TRATEA","SE_SEP_MATACH","SE_LGP_ACHIMA","SE_GPI_MATACH","SE_GPI_REAACH","SE_MAT_PROF","SE_REA_PROF","SE_SEP_REAACH","DC_TOF_SCHIPSL","SE_TRA_GRDL","SE_PRE_GPIPARTN","SE_PRE_PARTN","SE_NAP_ACHIMA","SE_NAP_ACHIRE","SE_URP_MATACH","SE_LGP_ACHIRE","SE_URP_REAACH"]},{"geoAreaCode":"16","geoAreaName":"American Samoa"},{"geoAreaCode":"20","geoAreaName":"Andorra","reportedTopics":["SE_ACC_COMP","SE_GPI_TRATEA","SE_INF_DSBL","SE_TRA_GRDL","SE_ACC_ELEC","SE_ACC_HNWA","SE_ACC_INTN","SE_ACC_DWAT","SE_ACC_SAN
View unStatsIndices.csv
We can't make this file beautiful and searchable because it's too large.
indicator,geoCode,geoName
AG_LND_FRSTCHG,96,Brunei Darussalam
AG_LND_FRSTCHG,92,British Virgin Islands
AG_LND_FRSTCHG,90,Solomon Islands
AG_LND_FRSTCHG,9,Oceania
AG_LND_FRSTCHG,894,Zambia
AG_LND_FRSTCHG,887,Yemen
AG_LND_FRSTCHG,882,Samoa
AG_LND_FRSTCHG,876,Wallis and Futuna Islands
@vigorousnorth
vigorousnorth / index.html
Last active Jan 13, 2019
Labelled graticules
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<!-- A refinement of http://bl.ocks.org/mbostock/3664049 with labeled graticules -->
<style>
.graticule {
fill: none;
stroke: #000;
You can’t perform that action at this time.