Skip to main content
100%

World Map

✓ Published0🌍 Public
SSharankumar02
Last edited Jul 20, 2023
Created on Jul 17, 2023
Forked from Hello VizHub

This example renders a world map using D3.js version 5 and TopoJSON. It displays country boundaries as green-filled paths with a semi-transparent stroke, overlaid on a white sphere representing the globe. The code uses `d3.geoNaturalEarth1` for projection, `d3.geoPath` to generate SVG paths, and `topojson.feature` to convert world-atlas data from TopoJSON to GeoJSON. Data is loaded asynchronously from the unpkg-hosted world-atlas dataset.

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