Skip to main content
100%

Lets make a map

✓ Published1🌍 Public
Ccornshoots
Last edited Mar 16, 2021
Created on Mar 15, 2021
Forked from Making a face

This example displays a world map using a natural Earth projection, with countries filled in light green against a dark blue sphere. It loads geographic data from the World Atlas TopoJSON file and converts it to GeoJSON using the topojson `feature` function. The visualization relies on D3 v5’s `geoPath` and `geoNaturalEarth1` for rendering, while the projection path is drawn for the entire sphere. The map is rendered as SVG elements, with country paths and a separate sphere path added to the canvas.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes