Assignment 2.6.2
✓ Published0🌍 Public
This example displays a choropleth map of Nepal, rendered as a green SVG path with a red stroke. It fetches the world-atlas GeoJSON dataset from a CDN and isolates the Nepal geometry using TopoJSON. The code projects the shape with a Mercator projection via `d3.geoMercator` and draws it using `d3.geoPath`, styling it with inline attributes.
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