Skip to main content
Public

Share visualization

Loading preview…

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

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportHTML, source ZIP

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

0 stars1Public
Bbhargavarathod
Last edited Mar 30, 2022
Created on Mar 30, 2022

This choropleth map of India uses a sequential color scale to encode each state with a distinct category color and labels each state with its name. The visualization relies on TopoJSON data for Indian state boundaries, which is projected and rendered using `d3.geoMercator` and `d3.geoPath`. The code filters out the first feature from the dataset before drawing the SVG paths, applies `d3.scaleOrdinal` with `schemeCategory10` for fills, and positions text labels at path centroids using `pathGenerator.centroid`.

AI-generated description

The map of India - my country

Comments

Sign in to join the discussion.

MIT Licensed