Skip to main content
100%

world map

✓ Published0🌍 Public
SSwapna1915
Last edited Jul 19, 2023
Created on Jul 18, 2023
Forked from Activity 8 Country

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