d3.js - D3 and GeoJSON - strange lines? -
d3.js - D3 and GeoJSON - strange lines? -
why geojson rendered d3 given below code? (should map of uganda)
geojson snippet
"type": "featurecollection", "features": [{ "type": "feature", "properties": { "d_06_id": 1, }, "geometry": { "type": "polygon", "coordinates": [ [ [472470.4185696139, 183515.90337615015]
code
var projection = d3.geo.mercator() .scale(60) var path = d3.geo.path().projection(projection); svg.selectall(".subunit") .data(data.features) .enter().append("path") .attr("d", path);
d3.js geojson
Comments
Post a Comment