Country Map
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed