Skip to content

Instantly share code, notes, and snippets.

@yoni
Created January 11, 2014 19:19
Show Gist options
  • Save yoni/8375483 to your computer and use it in GitHub Desktop.
Save yoni/8375483 to your computer and use it in GitHub Desktop.
var postVolumes = d3.map(instasound.neighborhoodStats).values().map(function(d) {return d.posts});
var postVolumeScale = d3.scale.linear()
.domain([d3.min(postVolumes), d3.max(postVolumes)])
.range(["black", "red"]);
console.log(postVolumes);
console.log(postVolumes.map(postVolumeScale));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment