Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 8 Country

Public visualization

Activity 8 Country

0 stars0🌍 Public
UUVarshaReddy
Last edited Jul 9, 2023
Created on Jul 9, 2023
Forked from Hello VizHub

This example displays a single-country map of India projected with the Mercator projection. It fetches world country boundaries from the world-atlas TopoJSON data, extracts the India feature, and renders it as an SVG path using D3's geoProjection and geoPath APIs. The visualization demonstrates loading D3 v5 and topojson-client from CDNs, and fitting the map to a 960 by 500 pixel canvas.

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