Skip to content

Instantly share code, notes, and snippets.

@shaneshifflett
Created July 29, 2013 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaneshifflett/6108493 to your computer and use it in GitHub Desktop.
Save shaneshifflett/6108493 to your computer and use it in GitHub Desktop.
d3 + colorbrewer + scales for assigning color to features
var clrs = [colorbrewer.Reds[7][3], colorbrewer.Reds[7][5], colorbrewer.Reds[7][7]];
var color = d3.scale.quantize()
.domain(minmax)
.range(clrs);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment