Skip to main content
100%

Easiest way of making a 'Map of India', data from Kaggle

✓ Published1🌍 Public
NNita
Last edited Jun 6, 2024
Created on Jun 5, 2024

This example displays a choropleth-style map of India with state boundaries and labels, rendered as an SVG using D3.js. It loads GeoJSON data from a GitHub gist and applies a Mercator projection via `d3.geoMercator` with `projection.fitSize` to scale the map. The `d3.geoPath` generator creates the state paths, and state names are placed at each polygon's centroid using `geoGenerator.centroid`. The visualization uses D3 v7 and TopoJSON for data handling, with a simple teal fill and black strokes.

AI-generated description
MIT Licensed

Similar vizzes