Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Map of India-Part I

Public visualization

Map of India-Part I

0 stars2🌍 Public
NNita
Last edited May 18, 2024
Created on May 18, 2024

This map of India uses a Mercator projection to display district-level crime rates, with each region colored on a blue sequential scale from white to dark blue based on the crime rate value. The visualization loads TopoJSON boundary data and CSV crime statistics, then combines them using the `topojson.feature` API and a `Map` lookup keyed by state names. D3’s `d3.geoPath` and `projection.fitSize` render the shapes, while `d3.scaleSequential` with `d3.interpolateBlues` assigns fill colors. Hovering over any district reveals its name and crime rate via a native SVG `title` tooltip.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed