🌍 Public
Viewing a saved revision (read-only)
2b543542148642a28704248c9f8092b8
India Map Country
This example displays a map of India with its state boundaries, rendered as an SVG using D3.js. Each state is drawn as a sky-blue path with black strokes and labeled with its name. The visualization uses `d3.geoMercator()` projection with `projection.fitExtent()` to fit the map to the viewport, and state boundaries are converted from TopoJSON data using `topojson.feature`. Hovering over a state highlights it in orange via CSS, while state names are placed at path centroids with `d3.geoPath()`.
AI-generated descriptionA demonstration of how to start using D3 version 6.