Skip to main content
100%

India Map

✓ Published0🌍 Public
Cchakritha06
Last edited Jul 10, 2022
Created on Jul 10, 2022
Forked from China City Basemap

This example displays a static map of India rendered as a set of coral-colored SVG paths. The map loads TopoJSON data from a GitHub gist, converts it to GeoJSON features using the `topojson` `feature` function, and projects each feature with D3’s `geoMercator` and `geoPath`. Built with React, the visualization fetches the data asynchronously via `d3.json`, caches it in state, and draws the paths within an SVG canvas sized to the browser window. The map uses a fixed projection centered over the country.

AI-generated description
MIT Licensed

Similar vizzes