Skip to main content
100%

Activity 8 Country

✓ Published0🌍 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.
MIT Licensed

Similar vizzes