Activity 8 Country
✓ Published0🌍 Public
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 descriptionA demonstration of how to start using D3 version 6.
MIT Licensed