Skip to main content
100%

Activity 8 Question 5 Part 2

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

This example visualizes India as a single highlighted geographic region, rendered on an SVG canvas using a Mercator projection fitted to the country’s boundaries. The code loads world country data from the world-atlas TopoJSON dataset via `d3.json`, extracts India’s geometry using `topojson.feature`, and draws it with `d3.geoPath` and `d3.geoMercator`. D3 v5 and the TopoJSON client library are loaded from CDNs, and the map is statically displayed without interaction or additional 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.
MIT Licensed

Similar vizzes