🌍 Public
Viewing a saved revision (read-only)
9bbf5838b7d84aebae1463268cc4bb5e
Activity 8 Q5B
This example displays a choropleth map of India using a Mercator projection, rendered as SVG. It loads country boundary data from the world-atlas TopoJSON file and extracts the India geometry with a topojson-client feature lookup. The code applies a d3.geoMercator projection with fitSize to scale the map to 960 by 500 pixels and draws it using d3.geoPath. The visualization focuses solely on outlining India’s shape without additional styling or data overlays.
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.