Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

Viewing a saved revision (read-only)

95433c73532e40099679489383d0afcf

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

0 stars1🌍 Public
RRuanzhenglin
Last edited May 25, 2021
Created on Mar 22, 2021

This choropleth map of India visualizes the country’s states, each filled with a distinct color from the `d3.scaleOrdinal` and `d3.schemeCategory10` palette. State names are rendered as labels at the centroid of each shape, computed with `d3.geoPath.centroid`. The code loads TopoJSON data from a remote GitHub source and converts it using `topojson.feature`. The map uses a `d3.geoMercator` projection, and all elements are drawn as SVG paths with black stroke outlines.

AI-generated description

The map of India - my country