Skip to main content
100%

Activity 8 Country

✓ Published5🌍 Public
Iindushashi.g@gmail.com
Last edited Jul 3, 2023
Created on Jul 2, 2023
Forked from D3 Starter

This example displays a single-country map of India using a Mercator projection. It fetches world geometry from the world-atlas TopoJSON dataset, extracts the India feature, and renders it as an SVG path. The visualization uses D3 v5’s `d3.json` for data loading, `d3.geoMercator` and `d3.geoPath` to project and draw the boundary, and `topojson.feature` to convert the TopoJSON data into GeoJSON. The map is sized to 960 by 500 pixels and fills the viewport based on India’s extent.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes