Skip to main content
Public

Share visualization

Loading preview…

World Map with D3 Final

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 with D3 Final

0
TToly
Last edited Dec 31, 2022
Created on Dec 31, 2022

This interactive world map displays country boundaries and names using a natural Earth projection, with a colored sphere background and hover effects that highlight individual countries in red. Built with D3 v5 and TopoJSON, the visualization loads geographic data from the world-atlas package, combining TSV country name metadata with JSON topology data. The code uses `geoNaturalEarth1`, `geoPath`, and `zoom` for projection and panning, while SVG paths render the map with CSS styling for interactivity.

AI-generated description

Interactive Worldmap with geoNaturalEarth1 view.

Bostock: worldmap

Bostock: Dataset for title function to return country names

Reference:

Comments

Sign in to join the discussion.

MIT Licensed