Australia Map
✓ Published1🌍 Public
This example presents a choropleth-style map of Australia, with each electoral region filled with a distinct color from `d3.schemeCategory10` and labeled with its name. The code uses `d3.geoMercator` to project the geographical data and `d3.geoPath` to generate SVG paths for each region. State and territory names are positioned using the centroid calculation from `d3.geoPath`. The map is rendered as an SVG, with data loaded from a TopoJSON file and processed using the `topojson.feature` API.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed