Skip to main content
Public

Share visualization

Loading preview…

country map

vizhub.com

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

Before sharing, review the publishing checklist.

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

country map

0
Kkranthireddyskr
Last edited Apr 3, 2022
Created on Apr 3, 2022
Forked from ICE 8 country map

This example displays a choropleth map of India, rendered as SVG paths using the Mercator projection. The map visualizes the country’s regions with categorical colors from `d3.scaleOrdinal` and `schemeCategory10`, and each region shows a tooltip title on hover. The code loads TopoJSON data from a GitHub gist via `d3.json`, parses it with `feature` from the topojson library, and draws paths using `d3.geoPath`. Hovering changes the fill color to pink, and the map includes a heading text layer.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed