Skip to main content
100%

Basic D3 map (Robinson) d3v4

✓ Published0🌍 Public
AAlan McConchie
Last edited Sep 10, 2017
Created on Sep 10, 2017

This example displays a world map using the Robinson projection, rendered as a single SVG path. The code loads GeoJSON data from an external URL and projects it with `d3.geoRobinson`, a projection from the `d3-geo-projection` plugin. It uses `d3.geoPath` to convert the projected geometry into SVG path data, with the map centered via `projection.translate`. The visualization is minimal, showing only landmasses without additional styling or interactivity.

AI-generated description

A basic map in D3 using the Mercator projection.

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/enjalot/'>enjalot</a>'s block: <a href='http://bl.ocks.org/enjalot/c069550b4fc4fb409430829f07bd78f2'>WWSD #6: d3.js projections</a>

forked from <a href='http://bl.ocks.org/almccon/'>almccon</a>'s block: <a href='http://bl.ocks.org/almccon/6ab03506d2e3ff9d843f69fa2d5c29cf'>Basic D3 map (Mercator)</a>

forked from <a href='http://bl.ocks.org/almccon/'>almccon</a>'s block: <a href='http://bl.ocks.org/almccon/fe445f1d6b177fd0946800a48aa59c71'>Basic D3 map (Mercator) d3v4</a>

mit Licensed

Similar vizzes