Skip to main content
100%

Activity 8 Country

✓ Published1🌍 Public
LLakshmanRangisetti
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

This example displays a map of India using a Mercator projection, rendered as an SVG path. It loads country boundary data from the world-atlas TopoJSON file hosted on jsDelivr, then extracts India’s geometry with `topojson.feature`. The code uses `d3.geoMercator` and `d3.geoPath` to project and draw the shape, fitting it to a 960×500 viewport via `fitSize`.

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