Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 8 Country

Public visualization

Viewing a saved revision (read-only)

f0857db944e947b38a9ae810b217ce5e

Activity 8 Country

0 stars0🌍 Public
MManideeprenikindi
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from Hello VizHub

This example shows a map of India generated from TopoJSON world atlas data. It filters the countries-50m dataset for the geometry with the name "India" and uses d3.geoMercator with fitSize to project it onto a 960×500 SVG canvas. The code draws the country boundary using d3.geoPath, styled simply as a black outline. It uses D3 v5 and the topojson-client library to convert the TopoJSON feature into a GeoJSON object for rendering.

AI-generated description

A demonstration of how to start using D3 version 6.