Skip to content

Instantly share code, notes, and snippets.

View mxfh's full-sized avatar

Friedrich Hartmann mxfh

View GitHub Profile
@mxfh
mxfh / d3map.css
Last active November 1, 2016 11:25 — forked from emeeks/d3map.css
Stamen Tiles - d3.carto.map
path,circle,rect,polygon,ellipse,line {
vector-effect: non-scaling-stroke;
}
svg, canvas {
top: 0;
}
#d3MapZoomBox {
position: absolute;
z-index: 10;
height: 100px;
@mxfh
mxfh / circle-legend.js
Last active December 16, 2015 03:14 — forked from aubergene/circle-legend.js
D3 Circular Legend
// Adapted from https://github.com/mbostock/d3/blob/master/src/svg/axis.js
// forked from http://bl.ocks.org/aubergene/4723857
var circleLegend = function() {
'use strict';
var scale,
orient = 'left',
tickPadding = 3,
tickExtend = 5,
tickArguments_ = [10],
@mxfh
mxfh / README.md
Last active September 9, 2015 12:56 — forked from mbostock/.block
Azimuthal Equidistant
@mxfh
mxfh / index.html
Last active August 29, 2015 14:09 — forked from mbostock/.block
Orthographic to Azimuthal Equidistant Projection
<!DOCTYPE html>
<meta charset="utf-8">
<style>
path {
fill: none;
stroke-linejoin: round;
}
.sphere,