Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

Viewing a saved revision (read-only)

1c311ec91d91435da938905a72856229

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

0 stars1🌍 Public
NNita
Last edited Jun 6, 2024
Created on Jun 6, 2024

This example renders a choropleth-style map of India, displaying state boundaries and state names on a blank SVG canvas. It uses D3.js to fetch a GeoJSON file of India’s states and a CSV of election data, though the CSV is only logged to the console. The map is drawn with `d3.geoMercator()` projection and `d3.geoPath`, with each state filled in teal and labeled via the path’s centroid. The code relies on d3.csv and d3.json for asynchronous data loading.

AI-generated description