Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 8 Country

Public visualization

Viewing a saved revision (read-only)

06b2e5edf5de48ec9789069abbd03f2d

Activity 8 Country

0 stars0🌍 Public
NNagateja99
Last edited Jul 13, 2023
Created on Jul 13, 2023
Forked from Hello VizHub

This example displays a map of India, rendered as a single SVG path using a Mercator projection fitted to the country’s boundaries. The code loads the World Atlas TopoJSON dataset, extracts the India geometry, and draws it with D3’s `d3.geoMercator` and `d3.geoPath` functions. It reads geographic data from a remote JSON file and projects it 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.