let geoJson = { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "name": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-6, 36], [33, 30], ... , [-6, 36]]] } }, ... ] } let projection = d3.geoEquirectangular(); let geoGenerator = d3.geoPath() .projection(projection); // Join the FeatureCollection's features array to path elements let u = d3.select('#content g.map') .selectAll('path') .data(geojson.features) .join('path') .attr('d', geoGenerator);