I am trying to render this simple map in D3, but its showing absolutely nothing. Here is the JSON file a link. I ran this JSON file through jsonlint so guess the file is okay. However it does not show a thing.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" type="text/javascript" ></script>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8" type="text/javascript"></script>
<link rel="stylesheet" href="#">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<h3>Map</h3>
<div>
<script type="text/javascript">
var projection = d3.geo.mercator()
.scale(29100)
.translate([7310, 3500]);
var path = d3.geo.path();
.projection(projection);
d3.json("pak.json", function(json) {
g.append("g")
.attr("id", "District")
svg.selectAll("path")
.data(json.features)
.enter()
.append("path")
.attr("d", d3.geo.path());
});
</script>
</div>
</body>
</html>