Skip to main content
100%

ICE 8 - WORLD MAP

✓ Published0🌍 Public
AAshrith Kudidhi
Last edited Jul 9, 2022
Created on Jul 9, 2022
Forked from Hello VizHub

This example displays a world map using a natural Earth projection, rendering each country as a purple SVG path with white borders against a pink background. It loads geographic data from the `world-atlas` TopoJSON dataset and converts it to GeoJSON using the `feature` function from `topojson`. The visualization is built with D3 v5, using `geoNaturalEarth1` for the projection, `geoPath` to generate SVG paths, and `select`/`json` for DOM manipulation and asynchronous data loading. A gray sphere outlines the earth's boundary.

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