Skip to main content
100%

Country Map

✓ Published0🌍 Public
HHarshiiiiiiiip
Last edited Jul 10, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This example displays a map of India, rendered as a single SVG path. It loads country boundary data from the world-atlas TopoJSON collection and filters for India. The code uses `d3.json` to fetch the data, `topojson.feature` to extract the geometry, and a `d3.geoMercator` projection with `d3.geoPath` to draw the landmass. The resulting path is appended to an SVG canvas sized at 960 by 500 pixels.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes