Skip to main content
100%

Activity 8 Country

✓ Published0🌍 Public
Ssuryavamsi00024
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This example displays a map of India rendered as an SVG path, centered using a Mercator projection fitted to the country’s geographic bounds. The code loads world country boundaries from the World Atlas TopoJSON collection via `d3.json`, extracts the India feature using `topojson.feature`, and draws it with `d3.geoPath`. The projection is created with `d3.geoMercator` and sized to a 960 by 500 viewport, demonstrating how to subset and visualize a single country from global geospatial data.

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