Skip to main content
100%

Activity8_Task5_CountryMap

✓ Published1🌍 Public
Rrikhitakoganti12
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This example displays a map of Australia rendered as an SVG using D3.js v5 and TopoJSON data from the world-atlas package. It uses the `d3.geoMercator` projection and `d3.geoPath` to draw the country’s outline onto a 960×500 canvas. The code fetches geographic data via `d3.json`, selects the Australia feature from the TopoJSON, and appends the path to the page.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes