Skip to main content
Public

Share visualization

Loading preview…

Country Map

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

Country Map

0
SSheela2930
Last edited Apr 13, 2023
Created on Apr 13, 2023
Forked from ICE8 - Country Map

This example displays a map of Australia’s administrative regions, with each state filled in red and labeled with its name. The visualization loads GeoJSON data from `australia.json` and projects it using `d3.geoMercator` with a custom translation and scale. It uses `d3.geoPath` to generate SVG paths for the regions and `topojson.feature` to extract the geometry. State names are positioned at each region’s centroid using `d3.geoPath.centroid`, rendered as SVG text elements with a small font size.

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