Skip to content

Instantly share code, notes, and snippets.

@jkeohan
Last active March 17, 2016 15:08
Show Gist options
  • Select an option

  • Save jkeohan/d9c0a68c7cd076b5585a to your computer and use it in GitHub Desktop.

Select an option

Save jkeohan/d9c0a68c7cd076b5585a to your computer and use it in GitHub Desktop.
Projections - CodeIt
{"description":"Projections - CodeIt","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"countries.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"pingpong","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"ajax-caching":true,"thumbnail":"http://i.imgur.com/Bq1hClk.png"}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
var countries = tributary.countries
console.log(countries.features)
var svg = d3.select('svg')
var h = d3.select(sel).node().clientHeight
//Load in GeoJSON data
function canvasSize(target) {
var height = parseFloat(d3.select(target).node().clientHeight)
var width = parseFloat(d3.select(target).node().clientWidth)
return [width,height]
}//canvasSize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment