Skip to main content
100%

Country Map

✓ Published0🌍 Public
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.

MIT Licensed

Similar vizzes