Skip to main content
100%

Assignment2_Task6_CountryMap

✓ Published0🌍 Public
Rrikhitakoganti12
Last edited Jul 22, 2023
Created on Jul 17, 2023

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 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