I'm have a geojson file of the wards of Chicago and I'm trying to render it on the browser using d3. Here is the geojson file.
You click on export, then you'll see download geojson. Also here is the js script I have to render it. :
<script>
var geoCanvas = d3.select("body").append("svg")
.attr("width", 1000)
.attr("height", 1000)
d3.json("wards-chi.geojson", function(data) {
var group = geoCanvas.selectAll("g")
.data(data.features)
.enter()
.append("g")
var projection = d3.geo.mercator().scale(100000);
var path = d3.geo.path().projection(projection);
var areas = group.append("path")
.attr("d", path)
.attr("class", "area")
.attr("fill", "steelblue");
});
</script>
And here is how it is rendered.
Whats rendered is nothing, at least nothing is visable or showing
I also used this tutorial, pretty much verbatim.