Skip to main content
100%

Fork of Fork of Fork of Map of India with D3 - chloropleth map

✓ Published2🌍 Public
RRuanzhenglin
Last edited Mar 22, 2021
Created on Mar 22, 2021

This choropleth map displays the states of India, each filled with a distinct color from a categorical scale and labeled with its name at the centroid of its shape. The visualization uses D3 v5 to load TopoJSON data from a remote GitHub repository, converting it to GeoJSON via the `feature` method, and projects it with the Mercator projection. State paths are rendered as SVG elements using `d3.geoPath`, while text labels are positioned with `pathGenerator.centroid`. The state boundary stroke is styled with gray, and the map canvas is set to an SVG size of 960 by 1000 pixels.

AI-generated description

The map of India - my country

MIT Licensed

Similar vizzes