Skip to content

Instantly share code, notes, and snippets.

View jasondavies's full-sized avatar
💭
💡

Jason Davies jasondavies

💭
💡
View GitHub Profile
@jasondavies
jasondavies / README.md
Created December 1, 2012 18:19 — forked from mbostock/.block
World Countries
@jasondavies
jasondavies / README.md
Created December 2, 2012 10:04 — forked from jasondavies/README.md
Australia↔Austria

Trying to figure out if there’s a problem with Australia↔Austria spherical linear interpolation in the [World Countries][1] example, as hinted at by Hadley Wickham.

Note how the geodesic is always a straight line under the orthographic projection, since it is always going through the centre. (Except for the initial view centred at (0°, 0°), which is not on the geodesic). This is true for all azimuthal projections.

@jasondavies
jasondavies / README.md
Created September 14, 2012 12:49 — forked from mbostock/.block
Antemeridian Cutting

D3 2.11’s d3.geo.path will automatically cut features for any aspect. Try dragging to rotate the world and see a new aspect.

@jasondavies
jasondavies / README.md
Last active June 15, 2016 22:26 — forked from mbostock/.block
Rotated hexbin

A version of Mike Bostock’s hexbin example, modified to use hexagons rotated by 90°. Aside from rotating the hexagon primitives, the only other change is to swap the meaning of x and y, for all inputs and outputs of the plugin.

@jasondavies
jasondavies / us-boundary.json
Created November 30, 2012 00:08 — forked from mbostock/us-boundary.json
Shared Data
{"type":"MultiPolygon","coordinates":[[[[-155.59,20.14],[-155.58,20.13],[-155.57,20.13],[-155.56,20.14],[-155.55,20.14],[-155.53,20.14],[-155.49,20.11],[-155.45,20.11],[-155.34,20.06],[-155.21,20],[-155.17,19.97],[-155.09,19.88],[-155.08,19.87],[-155.08,19.84],[-155.08,19.77],[-155.07,19.74],[-155.06,19.74],[-155.02,19.75],[-154.99,19.74],[-154.98,19.73],[-154.98,19.72],[-154.97,19.67],[-154.96,19.65],[-154.92,19.61],[-154.87,19.59],[-154.79,19.54],[-154.8,19.52],[-154.81,19.5],[-154.82,19.48],[-154.83,19.46],[-154.91,19.42],[-154.92,19.41],[-155.01,19.33],[-155.02,19.33],[-155.05,19.32],[-155.07,19.32],[-155.1,19.3],[-155.17,19.28],[-155.19,19.28],[-155.27,19.28],[-155.29,19.27],[-155.3,19.27],[-155.32,19.25],[-155.35,19.22],[-155.37,19.22],[-155.38,19.21],[-155.4,19.2],[-155.42,19.18],[-155.44,19.17],[-155.49,19.14],[-155.5,19.14],[-155.55,19.1],[-155.55,19.08],[-155.57,19.03],[-155.61,18.97],[-155.63,18.96],[-155.64,18.95],[-155.66,18.93],[-155.67,18.93],[-155.67,18.94],[-155.69,18.96],[-155.71,18.99],[-15
@jasondavies
jasondavies / README.md
Created September 28, 2012 12:09 — forked from jasondavies/README.md
Spiral Stress Test

Stress test for antemeridian cutting!

@jasondavies
jasondavies / README.md
Created September 27, 2012 22:40 — forked from jasondavies/README.md
Gringorten Equal-Area Projection
@jasondavies
jasondavies / README.md
Created September 24, 2012 23:13 — forked from mbostock/.block
LineString Cutting
@jasondavies
jasondavies / README.md
Created September 22, 2012 17:11 — forked from mbostock/.block
Stereographic Blue Marble
@jasondavies
jasondavies / README.md
Created September 21, 2012 21:59 — forked from jasondavies/README.md
Peirce Quincuncial Projection