world map
✓ Published0🌍 Public
This example visualizes the country of South Korea as a shaded map on a blank SVG canvas. It loads geographic data from the world-atlas TopoJSON dataset and uses the `topojson.feature` method to extract the country’s geometry. A `d3.geoMercator` projection fits the map to a 960×500 viewport via `fitSize`, and `d3.geoPath` renders the resulting polygon as a single dark path. The code demonstrates both external library imports via script tags and the basic D3 data-join pattern for drawing SVG shapes.
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