Skip to main content
100%

Australia Map

✓ Published0🌍 Public
RRupeshGandham
Last edited Jul 9, 2022
Created on Jul 9, 2022

This example displays a map of Australia with its electoral regions, each filled with a distinct color from a categorical palette using `d3.scaleOrdinal` and `schemeCategory10`. The map is rendered as SVG paths generated by `d3.geoPath` with a `geoMercator` projection, using TopoJSON data from `australia.json`. State and territory names are overlaid at each region’s centroid via `pathGenerator.centroid`. The visualization relies on D3 v5 and the `topojson` library for feature extraction.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes