Skip to main content
Public

Share visualization

Loading preview…

Fork of DV Fork for geo for world

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 & exportHTML, source ZIP

Fork of DV Fork for geo for world

0 stars0Public
Bbhargavarathod
Last edited Mar 30, 2022
Created on Mar 30, 2022

This example displays a world map in a natural Earth projection, with countries rendered as yellow shapes with black outlines against a blue ocean sphere. It uses D3 v5’s `geoNaturalEarth1` projection and `geoPath` to generate SVG paths from TopoJSON data. The code loads the TopoJSON file from a remote GitHub gist via `json`, converts it using `feature`, and appends country paths dynamically. The sphere background is drawn first, and all shapes use the SVG `path` element.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed