Skip to main content
Public

Share visualization

Loading preview…

ICE8_CountryMap

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

ICE8_CountryMap

0
RRahulSai05
Last edited Apr 5, 2022
Created on Apr 5, 2022
Forked from HTML Starter

This example renders a choropleth-style map of the United States using D3 v4 and TopoJSON, with each state drawn as a blue SVG path with cyan strokes on an orange background. The code loads state boundaries from the us-atlas TopoJSON dataset, converts them to GeoJSON features via `topojson.feature`, and projects them using `d3.geoAlbersUsa`—a projection that repositions Alaska below the contiguous states. SVG paths are generated through `d3.geoPath`, with explicit margin settings and a translate transform to center the map within the viewport.

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