Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

world map for Topojson data

Public visualization

world map for Topojson data

0 stars1🌍 Public
RRahulSai05
Last edited Apr 4, 2022
Created on Apr 4, 2022
Forked from Hello VizHub

This example displays a world map rendered from TopoJSON data, with countries shown as grey filled paths with cyan strokes against a light pink globe background. It uses d3.geoPath with a d3.geoNaturalEarth1 projection to generate SVG paths from geographic features. The code loads the TopoJSON file via d3.json and converts it to GeoJSON using topojson.feature. The visualization framework is D3 v5, with map styling controlled through the stylesheet’s `.country` and `.globe` classes.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed