I am trying to create a Map of any country from geoJson file using d3.js
Below is the code of html file
<!DOCTYPE html>
<html>
<head>
<title>Demo d3</title>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="file://d:AUS.jsonp"></script>
</head>
<body>
<script>
var canvass=d3.select("body").append("svg")
.attr("width",900)
.attr("height",900);
d3.json("AUS.json",function(data){
var group=canvass.selectAll("g")
.data(data.features).
.enter()
.append("g")
var projection=d3.geo.mercator().scale(7300).translate([]0,1980);
var path=d3.geo.path().projection(projection);
var areas=group.append("path")
.attr("d",path)
.attr("class","area")
.attr("fill","blue");
});
</script>
</body>
</html>
I have kept the AUS.json file locally in the same path as that of HTML file but when I open the HTML page I don't get any map.
I think that HTML file is not able to open that JSON file.
Any idea what to do?