Assignment2_Task6_CountryMap
✓ Published0🌍 Public
This example displays a map of Greenland rendered as a filled SVG path against a blank background. It loads geographic data from the world-atlas TopoJSON collection, extracts the Greenland feature using `topojson.feature`, and fits a `d3.geoMercator` projection to the country’s bounds with `fitSize`. The resulting shape is drawn on an SVG canvas using a `d3.geoPath` generator. D3 v5 and the topojson-client library are loaded via CDN to handle the data processing and map rendering.
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