Skip to main content
100%

Assignment 2_task 6(ii)

✓ Published0🌍 Public
KKeerthiAnnem
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

This example displays a single-path SVG map of Canada, rendered using a Mercator projection fitted to the country’s boundaries. The code loads world country geometries from the world-atlas TopoJSON file, filters for Canada via `topojson.feature`, and projects it with `d3.geoMercator` and `d3.geoPath`. The resulting vector shape is appended to an SVG element with no additional styling or interactivity.

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