Skip to main content
100%

Activity 8 Country

✓ Published0🌍 Public
Aakshayvenishetty1437
Last edited Jul 20, 2023
Created on Jul 20, 2023
Forked from Hello VizHub

This example displays a map of India rendered as a single SVG path, filled with the default black color on a white background. It loads geographic boundary data from the World Atlas TopoJSON dataset via `d3.json`, filters for the country feature using `topojson.feature`, and fits a `d3.geoMercator` projection to the geometry with `fitSize`. The resulting shape is drawn using `d3.geoPath`, demonstrating a minimal workflow for extracting and projecting a country outline in D3 v5.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes