🌍 Public
Viewing a saved revision (read-only)
ef6d9b45cb4341fa8dd48964064b9829
Lets make a map
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.