Skip to main content
100%

IndiaMap

✓ Published0🌍 Public
Aabdhaseeeb
Last edited Apr 13, 2023
Created on Apr 10, 2023
Forked from D3 Starter

This example renders a choropleth-style map of India using D3 v5 and TopoJSON, with each state filled by a categorical color from `d3.scaleOrdinal` and labeled via `d3.geoPath` centroids. The map is projected with `d3.geoMercator` and drawn as SVG paths from a hosted GeoJSON-like TopoJSON file, with hover effects defined in CSS. It uses `topojson.feature` to extract state boundaries and appends hover tooltips via `<title>` elements, demonstrating basic geographic data binding and interaction.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes