Skip to main content
Public

Share visualization

Loading preview…

bhargava-World Map using Mercator Projection

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

bhargava-World Map using Mercator Projection

0 stars1Public
Bbhargavarathod
Last edited Apr 4, 2022
Created on Apr 4, 2022
Forked from HTML Starter

This example displays a world map using the Mercator projection, with country boundaries rendered as white shapes against a blue ocean background. The visualization loads geographic data from a GitHub gist and uses D3 v5’s `geoMercator` and `geoPath` functions to project and draw the countries. TopoJSON’s `feature` method converts the source data into GeoJSON for rendering. The map is centered and scaled within an SVG element, with countries stroked in black for clear separation.

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