Skip to main content
100%

World Map Centered v5

✓ Published0🌍 Public
Dd3noob
Last edited Dec 2, 2019
Created on Dec 2, 2019

This example displays a world map centered on the Pacific Ocean using a Mercator projection. It renders country boundaries as grey SVG paths with white strokes via `d3.geoPath`, projecting geographic data from a TopoJSON file. The map is rotated with `rotate([-180,0])` to shift focus away from the Atlantic, while `d3.json` loads the topology and `topojson.feature` extracts country geometries for display.

AI-generated description

This is a simple map example centered on the Pacific.

This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 5 of d3.js.

mit Licensed

Similar vizzes