Skip to main content
100%

Activity 8 Country

✓ Published0🌍 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.

MIT Licensed

Similar vizzes