Skip to content

Instantly share code, notes, and snippets.

@abusedmedia
Created January 23, 2013 11:59
Show Gist options
  • Save abusedmedia/4604804 to your computer and use it in GitHub Desktop.
Save abusedmedia/4604804 to your computer and use it in GitHub Desktop.
d3.json("CIV.json", function(error, data){
var svg = d3.select('svg')
var projection = d3.geo.mercator()
.scale(30000)
.center([-2,8]);
var path = d3.geo.path()
.projection(projection);
svg.selectAll('path')
.data(data.features)
.enter()
.append('path')
.attr('d', path)
.style('fill', '#44cccc')
.style('opacity', .5)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment