Fork of Fork of Fork of Easiest way of making a 'Map of India', data from Kaggle-2
✓ Published0🌍 Public
NNita
Last edited Jun 10, 2024
Created on Jun 10, 2024
This choropleth map of India colors each state according to the leading political party from the 2024 election data, with a legend mapping party names to colors. The visualization loads a GeoJSON file and merges it with CSV election results, then projects the shapes using `d3.geoMercator` and renders them with `d3.geoPath`. State labels are placed at path centroids, and a legend is appended with SVG rectangles and text. The code uses D3.js v7 and TopoJSON to fetch and process the geographic and tabular data.
AI-generated descriptionMIT Licensed