Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 8 Country

Public visualization

Activity 8 Country

0 stars0🌍 Public
Bbogasamudramvamsikrishnareddy
Last edited Jul 23, 2023
Created on Jul 23, 2023
Forked from Hello VizHub

This example renders a map of India using geographic data from the world-atlas TopoJSON dataset. It loads D3 v5 and topojson-client via CDN, extracts the India geometry with `topojson.feature`, and projects it using `d3.geoMercator` with `fitSize`. A single SVG path is generated via `d3.geoPath` and appended to the page, displaying the country’s outline. The visualization demonstrates basic map projection and path rendering without additional interactivity or styling.

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.

Comments

Sign in to join the discussion.

MIT Licensed