Skip to main content
100%

Activity 8 Country

✓ Published0🌍 Public
Lleftymadi
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This example displays a map of India, rendered by extracting the country’s geometry from the World Atlas TopoJSON dataset. The map uses a Mercator projection, fitted to the viewport size with `d3.geoMercator().fitSize()`, and is drawn as an SVG path generated by `d3.geoPath`. The code loads geographic data via `d3.json()` and processes the TopoJSON features with the `topojson-client` library. The resulting visualization presents India as a single outlined shape on a blank canvas, with no additional styling or interactivity.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes