chart = {
var width = 1000,
height = 590;
var svg = d3.select(DOM.element('svg'))
.attr("width", width)
.attr("height", height);
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
var projection = d3.geoPatterson()
.center([58,54])
.scale(520)
.translate([0,0])
.precision(.1);
var path = d3.geoPath()
.projection(projection);
d3.json("asia.json", function(error, asia) {
var subunits = topojson.feature(asia, asia.objects.subunits);
svg.selectAll(".subunit")
.data(subunits.features)
.enter()
.append("path")
.attr("class", function(d) { return "subunit " + d.id; })
.attr("d", path);
});
var width = 1000,
height = 590;
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
var projection = d3.geoPatterson()
.center([58,54])
.scale(520)
.translate([0,0])
.precision(.1);
var path = d3.geoPath()
.projection(projection);
d3.json("asia_json", function(error, asia) {
var subunits = topojson.feature(asia, asia.objects.subunits);
svg.selectAll(".subunit")
.data(subunits.features)
.enter()
.append("path")
.attr("class", function(d) { return "subunit " + d.id; })
.attr("d", path);
});
return svg.node();
}