🌍 Public
Viewing a saved revision (read-only)
6139fd0460ab4e94a39d9825a240f342
Activity 8 Country
This example displays a geographic map of India rendered as an SVG using D3.js. It loads world country boundary data in TopoJSON format from the world-atlas package, extracts India via the `topojson.feature` function, and projects it with `d3.geoMercator`. The map is drawn using `d3.geoPath` with a fixed 960x500 viewport, demonstrating how to filter and visualize a single country from a global dataset.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.