Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am butterwell on github.
  • I am butterwell (https://keybase.io/butterwell) on keybase.
  • I have a public key ASBumNjVc9eC8TvMVLoBf_3BrkGaPs2Jxv9mFq5wKwdArgo

To claim this, I am signing this object:

@Butterwell
Butterwell / .block
Created July 7, 2018 14:57 — forked from rokotyan/.block
Export SVG D3 visualization to PNG or JPEG
license: mit
@Butterwell
Butterwell / index.html
Last active December 22, 2015 17:00
Hexes Only
<!DOCTYPE html>
<meta charset="utf-8">
<style>
path {
fill: none;
stroke-linejoin: round;
stroke: #000;
}
@Butterwell
Butterwell / README.md
Last active August 29, 2015 14:19 — forked from mbostock/.block
Bivariate Hexbin Map

This example shows how to use the d3.hexbin plugin for hexagonal binning on a map with the d3.geo.albersUsa projection. Approximately 3,000 locations of Walmart stores are shown. These are binned into hexagons, and the hexagon area encodes the number of stores that fall into each bin. Color encodes the median age of Walmart stores in that area, with the oldest stores in black and the youngest stores in blue. Inspired by earlier work by Zachary Forest Johnson. A direct rift of Bivariate Hexbin Map