Skip to main content
Public

Share visualization

Loading preview…

World Map hover version

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

World Map hover version

0
Ddata-inside
Last edited Nov 30, 2020
Created on Nov 17, 2020
Forked from React 201

This example displays an interactive world map rendered with SVG, featuring countries that change color when hovered over. The visualization uses D3 v5 with `geoNaturalEarth1` projection and `geoPath` to draw geographic shapes from TopoJSON data, while country names are loaded from a TSV file. Users can pan and zoom the map using D3’s `zoom` behavior, and a CSS hover effect highlights each country in red. The map includes a blue sphere background representing the Earth’s outline.

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