Assignment 2_task 6(ii)
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed