Lets make a map
✓ Published1🌍 Public
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.
MIT Licensed