Skip to main content
100%

test geomercator

✓ Published0🌍 Public
AAnimesh Nautiyal
Last edited Dec 30, 2021
Created on Dec 30, 2021
Forked from D3 Starter

This example displays a choropleth map of Mumbai's ward boundaries using a Mercator projection, with ward numbers labeled at each polygon's centroid. The map uses `d3.geoMercator` and `d3.geoPath` to render geographic data loaded from a local GeoJSON file, styling wards in grey or green depending on their `prabhag_no` property. Clicking a highlighted ward opens an external link, demonstrating basic interactivity with SVG event handlers. The visualization applies a custom scale and centering to focus on the city region.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes