Skip to main content
Public

Share visualization

Loading preview…

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

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

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

1 star2Public
NNita
Last edited Jun 6, 2024
Created on Jun 6, 2024

This interactive map of India displays the leading political party in each state, colored according to a predefined palette. It uses D3.js (v7.9.0) with the `d3.geoMercator` projection and `d3.geoPath` to render the geographic boundaries. State-level election results from a CSV file are joined with a GeoJSON map, and each state is labeled with its name and leading party. A rotated legend lists all party colors. The SVG output is generated using `d3.json` and `d3.csv` data loading, with tooltips provided by SVG `title` elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed