Skip to content

Instantly share code, notes, and snippets.

🐢

Gregor Aisch gka

🐢
Block or report user

Report or block gka

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
@gka
gka / .block
Last active Jun 30, 2016 — forked from mbostock/.block
Natural Earth
View .block
license: gpl-3.0
View README.md

Created by Christopher Manning

Summary

Nodes are linked to nodes in neighboring cells. The cell's color is a function of its area.

The white lines are the Delaunay triangulation and the purple cells are the Voronoi diagram.

Controls

View README.md

This simple force-directed graph shows character co-occurence in Les Misérables. A physical simulation of charged particles and springs places related characters in closer proximity, while unrelated characters are farther apart. Layout algorithm inspired by Tim Dwyer and Thomas Jakobsen. Data based on character coappearence in Victor Hugo's Les Misérables, compiled by Donald Knuth.

View README.md

A treemap recursively subdivides area into rectangles; the area of any node in the tree corresponds to its value. This example uses color to encode different packages of the Flare visualization toolkit. Treemap design invented by Ben Shneiderman. Squarified algorithm by Bruls, Huizing and van Wijk. Data courtesy Jeff Heer.

@gka
gka / bundle.html
Last active Dec 14, 2015 — forked from mbostock/.block
d3 inter-dependency graph
View bundle.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<link type="text/css" rel="stylesheet" href="style.css"/>
<style type="text/css">
path.arc {
cursor: move;
View README.md

This simple force-directed graph shows character co-occurence in Les Misérables. A physical simulation of charged particles and springs places related characters in closer proximity, while unrelated characters are farther apart. Layout algorithm inspired by Tim Dwyer and Thomas Jakobsen. Data based on character coappearence in Victor Hugo's Les Misérables, compiled by Donald Knuth.

View README.md

Source: Bureau of Labor Statistics

This visualization shows the distribution of unemployment for 380 U.S. metropolitan areas from January 2000 to December 2012. I’m currently weighting each area equally, but it would probably be better to weight areas by the size of the civilian labor force. Thanks to Kevin Quealy for suggesting this dataset, which was the basis for his earlier graphic!

View gist:4032081
{
"proj": {
"id": "robinson"
},
"layers": {
"countries": {
"src": "ne_10m_admin_0_countries.shp"
},
"graticule": {
"special": "graticule",
@gka
gka / README.md
Created Sep 19, 2012
Comparing Map Projections
View README.md
@gka
gka / gist:3666005
Created Sep 7, 2012 — forked from jarek-foksa/gist:2648095
SVGElement.prototype.innerSVG shim
View gist:3666005
Object.defineProperty(SVGElement.prototype, 'innerSVG', {
get: function() {
var $node, $temp;
$temp = document.createElement('div');
$node = this.cloneNode(true);
$temp.appendChild($node);
return $temp.innerHTML;
},
set: function(markup) {
var $element, $temp, _i, _len, _ref, _results;
You can’t perform that action at this time.