Skip to main content
100%

Activity 8 Country

✓ Published0🌍 Public
Aakshayvenishetty1437
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

This example displays a map of India using geographic data from the world-atlas TopoJSON dataset. It extracts the India feature from the countries collection, then renders the country’s outline as an SVG path. The visualization uses D3 v5’s `d3.json` to load the data, `topojson.feature` to convert the TopoJSON geometry, and a `d3.geoMercator` projection fitted to the map’s dimensions via `fitSize`. The resulting path is drawn with `d3.geoPath`, producing a simple, projected country boundary.

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