Fork India map
✓ Published0🌍 Public
SSreejaBellamkonda
Last edited Apr 1, 2022
Created on Apr 1, 2022
This example displays a choropleth map of India, with each state filled by a categorical color scale and labeled with its name. Using D3 v5, the map is rendered as SVG paths generated by `d3.geoPath` with a `geoMercator` projection. The code loads TopoJSON data from the world-atlas package, specifically targeting the `india-districts-2019-734` object, and assigns colors via `scaleOrdinal` with `schemeCategory10`. State labels are positioned at each path’s centroid using `pathGenerator.centroid`.
AI-generated descriptionThe map of India - my country
MIT Licensed