Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 8 Country

Public visualization

Viewing a saved revision (read-only)

504039fdb86b4ea8aa27b4db6aa4fe65

Activity 8 Country

0 stars0🌍 Public
HHemanthh81
Last edited Jul 19, 2023
Created on Jul 19, 2023
Forked from Hello VizHub

This example displays an India-focused choropleth map, extracting the country's geometry from a TopoJSON world dataset and fitting a Mercator projection to its boundaries. The visualization renders the mapped region as a single dark SVG path using D3 v5’s `d3.json`, `d3.geoMercator`, and `d3.geoPath` methods, with the TopoJSON client converting the country feature into GeoJSON. The code loads the world-atlas dataset from a CDN and draws the result on a 960×500 pixel SVG canvas.

AI-generated description

A demonstration of how to start using D3 version 6.