Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 8 Country

Public visualization

Viewing a saved revision (read-only)

e9ceb12fb1ae459eb7f45bc9d88c8e14

Activity 8 Country

0 stars1🌍 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.