Skip to main content
100%

Activity 8 Country

✓ Published1🌍 Public
SSharankumar02
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

This example renders a choropleth-style outline of India as an SVG map using D3 v5 and TopoJSON. It loads world atlas data from a CDN, filters the TopoJSON feature for the country named India, and fits a `d3.geoMercator` projection to the shape with `fitSize`. A `d3.geoPath` generator draws the country boundary onto a 960 by 500 SVG canvas. The code demonstrates a minimal workflow for extracting and projecting a single country from global geographic data.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes